aboutsummaryrefslogtreecommitdiff
path: root/src/api/burn/test
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2021-06-29 19:14:02 -0500
committerSean Hall <r.sean.hall@gmail.com>2021-07-02 12:50:09 -0500
commit8cbfc326cccf8d9b3b63cb6f752fc770f7dee0fc (patch)
tree639f70e7327cdfade62271da04aaaaae2e85cc05 /src/api/burn/test
parente844f12f7d7247a1e9ba4eef2a388e614001bb24 (diff)
downloadwix-8cbfc326cccf8d9b3b63cb6f752fc770f7dee0fc.tar.gz
wix-8cbfc326cccf8d9b3b63cb6f752fc770f7dee0fc.tar.bz2
wix-8cbfc326cccf8d9b3b63cb6f752fc770f7dee0fc.zip
Expose overridable variable APIs in balutil and Mba.Core.
Fixes #4777
Diffstat (limited to 'src/api/burn/test')
-rw-r--r--src/api/burn/test/WixToolsetTest.Mba.Core/BaseBootstrapperApplicationFactoryFixture.cs13
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 @@
3namespace WixToolsetTest.Mba.Core 3namespace 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 {