diff options
Diffstat (limited to 'src/api/burn/test')
-rw-r--r-- | src/api/burn/test/WixToolsetTest.Mba.Core/BaseBootstrapperApplicationFactoryFixture.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/api/burn/test/WixToolsetTest.Mba.Core/BaseBootstrapperApplicationFactoryFixture.cs b/src/api/burn/test/WixToolsetTest.Mba.Core/BaseBootstrapperApplicationFactoryFixture.cs index aaf5ee29..b49b3927 100644 --- a/src/api/burn/test/WixToolsetTest.Mba.Core/BaseBootstrapperApplicationFactoryFixture.cs +++ b/src/api/burn/test/WixToolsetTest.Mba.Core/BaseBootstrapperApplicationFactoryFixture.cs | |||
@@ -3,6 +3,7 @@ | |||
3 | namespace WixToolsetTest.Mba.Core | 3 | namespace WixToolsetTest.Mba.Core |
4 | { | 4 | { |
5 | using System; | 5 | using System; |
6 | using System.Collections.Generic; | ||
6 | using System.Runtime.InteropServices; | 7 | using System.Runtime.InteropServices; |
7 | using WixToolset.Mba.Core; | 8 | using WixToolset.Mba.Core; |
8 | using Xunit; | 9 | using Xunit; |
@@ -17,7 +18,7 @@ namespace WixToolsetTest.Mba.Core | |||
17 | action = LaunchAction.Install, | 18 | action = LaunchAction.Install, |
18 | cbSize = Marshal.SizeOf(typeof(TestCommand)), | 19 | cbSize = Marshal.SizeOf(typeof(TestCommand)), |
19 | display = Display.Full, | 20 | display = Display.Full, |
20 | wzCommandLine = "this \"is a\" test", | 21 | wzCommandLine = "this \"is a\" test VariableA=AVariable =EmptyName EmptyValue=", |
21 | }; | 22 | }; |
22 | var pCommand = Marshal.AllocHGlobal(command.cbSize); | 23 | var pCommand = Marshal.AllocHGlobal(command.cbSize); |
23 | try | 24 | try |
@@ -42,7 +43,15 @@ namespace WixToolsetTest.Mba.Core | |||
42 | Assert.Equal(baFactory.BA, createResults.pBA); | 43 | Assert.Equal(baFactory.BA, createResults.pBA); |
43 | Assert.Equal(baFactory.BA.Command.Action, command.action); | 44 | Assert.Equal(baFactory.BA.Command.Action, command.action); |
44 | Assert.Equal(baFactory.BA.Command.Display, command.display); | 45 | Assert.Equal(baFactory.BA.Command.Display, command.display); |
45 | Assert.Equal(baFactory.BA.Command.CommandLineArgs, new string[] { "this", "is a", "test" }); | 46 | |
47 | var mbaCommand = baFactory.BA.Command.ParseCommandLine(); | ||
48 | Assert.Equal(mbaCommand.UnknownCommandLineArgs, new string[] { "this", "is a", "test" }); | ||
49 | Assert.Equal(mbaCommand.Variables, new KeyValuePair<string, string>[] | ||
50 | { | ||
51 | new KeyValuePair<string, string>("VariableA", "AVariable"), | ||
52 | new KeyValuePair<string, string>("", "EmptyName"), | ||
53 | new KeyValuePair<string, string>("EmptyValue", ""), | ||
54 | }); | ||
46 | } | 55 | } |
47 | finally | 56 | finally |
48 | { | 57 | { |