aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolsetTest.BurnE2E/WixTestContext.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/WixToolsetTest.BurnE2E/WixTestContext.cs')
-rw-r--r--src/WixToolsetTest.BurnE2E/WixTestContext.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/WixToolsetTest.BurnE2E/WixTestContext.cs b/src/WixToolsetTest.BurnE2E/WixTestContext.cs
index 97856089..5620c6a7 100644
--- a/src/WixToolsetTest.BurnE2E/WixTestContext.cs
+++ b/src/WixToolsetTest.BurnE2E/WixTestContext.cs
@@ -4,6 +4,7 @@ namespace WixToolsetTest.BurnE2E
4{ 4{
5 using System; 5 using System;
6 using System.IO; 6 using System.IO;
7 using System.Linq;
7 using System.Reflection; 8 using System.Reflection;
8 using Microsoft.Win32; 9 using Microsoft.Win32;
9 using WixBuildTools.TestSupport; 10 using WixBuildTools.TestSupport;
@@ -11,15 +12,17 @@ namespace WixToolsetTest.BurnE2E
11 12
12 public class WixTestContext 13 public class WixTestContext
13 { 14 {
14 static readonly string RootDataPath = Path.GetFullPath(TestData.Get("..")); 15 static readonly string RootDataPath = Path.GetFullPath(TestData.Get("TestData"));
15 16
16 public WixTestContext(ITestOutputHelper testOutputHelper, string testGroupName) 17 public WixTestContext(ITestOutputHelper testOutputHelper)
17 { 18 {
18 var test = GetTest(testOutputHelper); 19 var test = GetTest(testOutputHelper);
20 var splitClassName = test.TestCase.TestMethod.TestClass.Class.Name.Split('.');
19 21
20 this.TestDataFolder = Path.Combine(RootDataPath, testGroupName); 22 this.TestGroupName = splitClassName.Last();
21 this.TestGroupName = testGroupName;
22 this.TestName = test.TestCase.TestMethod.Method.Name; 23 this.TestName = test.TestCase.TestMethod.Method.Name;
24
25 this.TestDataFolder = Path.Combine(RootDataPath, this.TestGroupName);
23 } 26 }
24 27
25 public string TestDataFolder { get; } 28 public string TestDataFolder { get; }