diff options
Diffstat (limited to 'src/ext')
-rw-r--r-- | src/ext/UI/UI.wixext.v3.ncrunchsolution | 6 | ||||
-rw-r--r-- | src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs | 33 |
2 files changed, 39 insertions, 0 deletions
diff --git a/src/ext/UI/UI.wixext.v3.ncrunchsolution b/src/ext/UI/UI.wixext.v3.ncrunchsolution new file mode 100644 index 00000000..10420ac9 --- /dev/null +++ b/src/ext/UI/UI.wixext.v3.ncrunchsolution | |||
@@ -0,0 +1,6 @@ | |||
1 | <SolutionConfiguration> | ||
2 | <Settings> | ||
3 | <AllowParallelTestExecution>True</AllowParallelTestExecution> | ||
4 | <SolutionConfigured>True</SolutionConfigured> | ||
5 | </Settings> | ||
6 | </SolutionConfiguration> \ No newline at end of file | ||
diff --git a/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs b/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs index ca36fed5..778bfb64 100644 --- a/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs +++ b/src/ext/UI/test/WixToolsetTest.UI/UIExtensionFixture.cs | |||
@@ -2,9 +2,14 @@ | |||
2 | 2 | ||
3 | namespace WixToolsetTest.UI | 3 | namespace WixToolsetTest.UI |
4 | { | 4 | { |
5 | using System; | ||
6 | using System.IO; | ||
5 | using System.Linq; | 7 | using System.Linq; |
6 | using WixBuildTools.TestSupport; | 8 | using WixBuildTools.TestSupport; |
7 | using WixToolset.Core.TestPackage; | 9 | using WixToolset.Core.TestPackage; |
10 | using WixToolset.Data; | ||
11 | using WixToolset.Data.Symbols; | ||
12 | using WixToolset.Data.WindowsInstaller; | ||
8 | using WixToolset.UI; | 13 | using WixToolset.UI; |
9 | using Xunit; | 14 | using Xunit; |
10 | 15 | ||
@@ -67,6 +72,34 @@ namespace WixToolsetTest.UI | |||
67 | } | 72 | } |
68 | 73 | ||
69 | [Fact] | 74 | [Fact] |
75 | public void CanBuildUsingWixUIMinimalAndReadPdb() | ||
76 | { | ||
77 | var folder = TestData.Get(@"TestData\WixUI_Minimal"); | ||
78 | var bindFolder = TestData.Get(@"TestData\data"); | ||
79 | |||
80 | using (var fs = new DisposableFileSystem()) | ||
81 | { | ||
82 | var intermediateFolder = fs.GetFolder(); | ||
83 | |||
84 | Build(new[] | ||
85 | { | ||
86 | "build", | ||
87 | Path.Combine(folder, "Package.wxs"), | ||
88 | "-ext", Path.GetFullPath(new Uri(typeof(UIExtensionFactory).Assembly.CodeBase).LocalPath), | ||
89 | "-bindpath", bindFolder, | ||
90 | "-intermediateFolder", intermediateFolder, | ||
91 | "-o", Path.Combine(intermediateFolder, @"bin\test.msi") | ||
92 | }); | ||
93 | |||
94 | var wid = WindowsInstallerData.Load(Path.Combine(intermediateFolder, @"bin\test.wixpdb")); | ||
95 | var propertyTable = wid.Tables["Property"]; | ||
96 | |||
97 | var propertyRow = propertyTable.Rows.Single(r => r.GetPrimaryKey() == "WixUI_Mode"); | ||
98 | WixAssert.StringEqual("Minimal", propertyRow.FieldAsString(1)); | ||
99 | } | ||
100 | } | ||
101 | |||
102 | [Fact] | ||
70 | public void CanBuildUsingWixUIMondo() | 103 | public void CanBuildUsingWixUIMondo() |
71 | { | 104 | { |
72 | var folder = TestData.Get(@"TestData\WixUI_Mondo"); | 105 | var folder = TestData.Get(@"TestData\WixUI_Mondo"); |