-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathInstallationFixture.cs
More file actions
40 lines (32 loc) · 952 Bytes
/
InstallationFixture.cs
File metadata and controls
40 lines (32 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
namespace ServiceControlInstaller.Engine.UnitTests.Configuration
{
using System.IO;
using NUnit.Framework;
public abstract class InstallationFixture
{
[SetUp]
public void SetUp()
{
testPath = Path.Combine(Path.GetTempPath(), TestContext.CurrentContext.Test.ID);
if (Directory.Exists(testPath))
{
Directory.Delete(testPath, true);
}
InstallPath = Path.Combine(testPath, "install");
DbPath = Path.Combine(testPath, "db");
LogPath = Path.Combine(testPath, "log");
}
[TearDown]
public void TearDown()
{
if (Directory.Exists(testPath))
{
Directory.Delete(testPath, true);
}
}
protected string InstallPath;
protected string DbPath;
protected string LogPath;
string testPath;
}
}