Files
FileFlowsPlugins/ComicNodes/Tests/_TestBase.cs
2024-05-07 15:11:24 +12:00

40 lines
831 B
C#

#if(DEBUG)
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace FileFlows.Comic.Tests;
[TestClass]
public abstract class TestBase
{
/// <summary>
/// Gets the test logger
/// </summary>
internal TestLogger Logger = new TestLogger();
/// <summary>
/// The test context instance
/// </summary>
private TestContext? testContextInstance;
/// <summary>
/// Gets or sets the test context
/// </summary>
public TestContext TestContext
{
get => testContextInstance!;
set => testContextInstance = value;
}
public string TempPath = "/home/john/Comics/temp";
[TestInitialize]
public void TestInitialize()
{
if (Directory.Exists(this.TempPath) == false)
Directory.CreateDirectory(this.TempPath);
}
}
#endif