mirror of
https://github.com/revenz/FileFlowsPlugins.git
synced 2025-12-30 13:30:11 -06:00
40 lines
831 B
C#
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 |