diff options
Diffstat (limited to 'src/test/WixToolsetTest.ManagedHost/TestEngine.cs')
-rw-r--r-- | src/test/WixToolsetTest.ManagedHost/TestEngine.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.ManagedHost/TestEngine.cs b/src/test/WixToolsetTest.ManagedHost/TestEngine.cs index 751ed59c..cda32895 100644 --- a/src/test/WixToolsetTest.ManagedHost/TestEngine.cs +++ b/src/test/WixToolsetTest.ManagedHost/TestEngine.cs | |||
@@ -13,14 +13,25 @@ namespace WixToolsetTest.ManagedHost | |||
13 | private static readonly string TestEngineFile = TestData.Get(@"..\Win32\examples\Example.TestEngine\Example.TestEngine.exe"); | 13 | private static readonly string TestEngineFile = TestData.Get(@"..\Win32\examples\Example.TestEngine\Example.TestEngine.exe"); |
14 | public static readonly string BurnStubFile = TestData.Get(@"runtimes\win-x86\native\burn.x86.exe"); | 14 | public static readonly string BurnStubFile = TestData.Get(@"runtimes\win-x86\native\burn.x86.exe"); |
15 | 15 | ||
16 | public TestEngineResult RunReloadEngine(string bundleFilePath, string tempFolderPath) | ||
17 | { | ||
18 | return this.RunTestEngine("reload", bundleFilePath, tempFolderPath); | ||
19 | } | ||
20 | |||
16 | public TestEngineResult RunShutdownEngine(string bundleFilePath, string tempFolderPath) | 21 | public TestEngineResult RunShutdownEngine(string bundleFilePath, string tempFolderPath) |
17 | { | 22 | { |
23 | return this.RunTestEngine("shutdown", bundleFilePath, tempFolderPath); | ||
24 | } | ||
25 | |||
26 | private TestEngineResult RunTestEngine(string engineMode, string bundleFilePath, string tempFolderPath) | ||
27 | { | ||
18 | var baFolderPath = Path.Combine(tempFolderPath, "ba"); | 28 | var baFolderPath = Path.Combine(tempFolderPath, "ba"); |
19 | var extractFolderPath = Path.Combine(tempFolderPath, "extract"); | 29 | var extractFolderPath = Path.Combine(tempFolderPath, "extract"); |
20 | var extractResult = BundleExtractor.ExtractBAContainer(null, bundleFilePath, baFolderPath, extractFolderPath); | 30 | var extractResult = BundleExtractor.ExtractBAContainer(null, bundleFilePath, baFolderPath, extractFolderPath); |
21 | extractResult.AssertSuccess(); | 31 | extractResult.AssertSuccess(); |
22 | 32 | ||
23 | var args = new string[] { | 33 | var args = new string[] { |
34 | engineMode, | ||
24 | '"' + bundleFilePath + '"', | 35 | '"' + bundleFilePath + '"', |
25 | '"' + extractResult.GetBAFilePath(baFolderPath) + '"', | 36 | '"' + extractResult.GetBAFilePath(baFolderPath) + '"', |
26 | }; | 37 | }; |