diff options
Diffstat (limited to 'src/ext/Bal/test/WixToolsetTest.ManagedHost/MbaHostFixture.cs')
-rw-r--r-- | src/ext/Bal/test/WixToolsetTest.ManagedHost/MbaHostFixture.cs | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/src/ext/Bal/test/WixToolsetTest.ManagedHost/MbaHostFixture.cs b/src/ext/Bal/test/WixToolsetTest.ManagedHost/MbaHostFixture.cs deleted file mode 100644 index 6f7709b5..00000000 --- a/src/ext/Bal/test/WixToolsetTest.ManagedHost/MbaHostFixture.cs +++ /dev/null | |||
@@ -1,100 +0,0 @@ | |||
1 | // Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. | ||
2 | |||
3 | namespace WixToolsetTest.ManagedHost | ||
4 | { | ||
5 | using WixInternal.TestSupport; | ||
6 | using Xunit; | ||
7 | |||
8 | public class MbaHostFixture | ||
9 | { | ||
10 | static readonly string bundleBasePath = TestData.Get("..", "examples"); | ||
11 | |||
12 | [Fact] | ||
13 | public void CanLoadFullFramework2MBA() | ||
14 | { | ||
15 | using (var fs = new DisposableFileSystem()) | ||
16 | { | ||
17 | var baseFolder = fs.GetFolder(); | ||
18 | var bundleFile = TestData.Get(bundleBasePath, "FullFramework2Bundle.exe"); | ||
19 | var testEngine = new TestEngine(); | ||
20 | |||
21 | var result = testEngine.RunShutdownEngine(bundleFile, baseFolder); | ||
22 | WixAssert.CompareLineByLine(new[] | ||
23 | { | ||
24 | "Loading managed bootstrapper application.", | ||
25 | "Creating BA thread to run asynchronously.", | ||
26 | "FullFramework2BA", | ||
27 | "Shutdown,ReloadBootstrapper,0", | ||
28 | }, result.Output.ToArray()); | ||
29 | } | ||
30 | } | ||
31 | |||
32 | [Fact] | ||
33 | public void CanLoadFullFramework4MBA() | ||
34 | { | ||
35 | using (var fs = new DisposableFileSystem()) | ||
36 | { | ||
37 | var baseFolder = fs.GetFolder(); | ||
38 | var bundleFile = TestData.Get(bundleBasePath, "FullFramework4Bundle.exe"); | ||
39 | var testEngine = new TestEngine(); | ||
40 | |||
41 | var result = testEngine.RunShutdownEngine(bundleFile, baseFolder); | ||
42 | WixAssert.CompareLineByLine(new[] | ||
43 | { | ||
44 | "Loading managed bootstrapper application.", | ||
45 | "Creating BA thread to run asynchronously.", | ||
46 | "FullFramework4BA", | ||
47 | "Shutdown,ReloadBootstrapper,0", | ||
48 | }, result.Output.ToArray()); | ||
49 | } | ||
50 | } | ||
51 | |||
52 | [Fact] | ||
53 | public void CanReloadFullFramework2MBA() | ||
54 | { | ||
55 | using (var fs = new DisposableFileSystem()) | ||
56 | { | ||
57 | var baseFolder = fs.GetFolder(); | ||
58 | var bundleFile = TestData.Get(bundleBasePath, "FullFramework2Bundle.exe"); | ||
59 | var testEngine = new TestEngine(); | ||
60 | |||
61 | var result = testEngine.RunReloadEngine(bundleFile, baseFolder); | ||
62 | WixAssert.CompareLineByLine(new[] | ||
63 | { | ||
64 | "Loading managed bootstrapper application.", | ||
65 | "Creating BA thread to run asynchronously.", | ||
66 | "FullFramework2BA", | ||
67 | "Shutdown,ReloadBootstrapper,0", | ||
68 | "Loading managed bootstrapper application.", | ||
69 | "Creating BA thread to run asynchronously.", | ||
70 | "FullFramework2BA", | ||
71 | "Shutdown,Restart,0", | ||
72 | }, result.Output.ToArray()); | ||
73 | } | ||
74 | } | ||
75 | |||
76 | [Fact] | ||
77 | public void CanReloadFullFramework4MBA() | ||
78 | { | ||
79 | using (var fs = new DisposableFileSystem()) | ||
80 | { | ||
81 | var baseFolder = fs.GetFolder(); | ||
82 | var bundleFile = TestData.Get(bundleBasePath, "FullFramework4Bundle.exe"); | ||
83 | var testEngine = new TestEngine(); | ||
84 | |||
85 | var result = testEngine.RunReloadEngine(bundleFile, baseFolder); | ||
86 | WixAssert.CompareLineByLine(new[] | ||
87 | { | ||
88 | "Loading managed bootstrapper application.", | ||
89 | "Creating BA thread to run asynchronously.", | ||
90 | "FullFramework4BA", | ||
91 | "Shutdown,ReloadBootstrapper,0", | ||
92 | "Loading managed bootstrapper application.", | ||
93 | "Creating BA thread to run asynchronously.", | ||
94 | "FullFramework4BA", | ||
95 | "Shutdown,Restart,0", | ||
96 | }, result.Output.ToArray()); | ||
97 | } | ||
98 | } | ||
99 | } | ||
100 | } | ||