dotnet-installer/src/SourceBuild/content/test/Microsoft.DotNet.SourceBuild.SmokeTests/TestBase.cs

24 lines
623 B
C#
Raw Normal View History

2023-10-12 15:50:19 -05:00
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.IO;
using Xunit.Abstractions;
namespace Microsoft.DotNet.SourceBuild.SmokeTests;
public abstract class TestBase
{
public ITestOutputHelper OutputHelper { get; }
public TestBase(ITestOutputHelper outputHelper)
{
OutputHelper = outputHelper;
if (!Directory.Exists(Config.LogsDirectory))
2023-10-12 15:50:19 -05:00
{
Directory.CreateDirectory(Config.LogsDirectory);
2023-10-12 15:50:19 -05:00
}
}
}