aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorBob Arnson <bob@firegiant.com>2020-01-23 14:46:40 -0500
committerBob Arnson <bob@firegiant.com>2020-01-23 14:50:33 -0500
commit54c6cf7e151b4e816cedc393e9c520eb818524de (patch)
treea932e2b6ea4473705884dc34059602038f0935ef /src/test
parentc2bc01b47cca2a70ddeb2cc9e9b2e3b9906bb647 (diff)
downloadwix-54c6cf7e151b4e816cedc393e9c520eb818524de.tar.gz
wix-54c6cf7e151b4e816cedc393e9c520eb818524de.tar.bz2
wix-54c6cf7e151b4e816cedc393e9c520eb818524de.zip
Fix CustomTable/@Unreal="yes" binding.
Diffstat (limited to 'src/test')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs30
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/TestData/CustomTable/CustomTable.wxs13
2 files changed, 43 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
index 18380417..38ef2e2e 100644
--- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
+++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
@@ -385,6 +385,36 @@ namespace WixToolsetTest.CoreIntegration
385 } 385 }
386 386
387 [Fact] 387 [Fact]
388 public void UnrealCustomTableIsNotPresentInMsi()
389 {
390 var folder = TestData.Get(@"TestData");
391
392 using (var fs = new DisposableFileSystem())
393 {
394 var baseFolder = fs.GetFolder();
395 var intermediateFolder = Path.Combine(baseFolder, "obj");
396 var msiPath = Path.Combine(baseFolder, @"bin\test.msi");
397
398 var result = WixRunner.Execute(new[]
399 {
400 "build",
401 Path.Combine(folder, "CustomTable", "CustomTable.wxs"),
402 Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"),
403 Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"),
404 "-bindpath", Path.Combine(folder, "SingleFile", "data"),
405 "-intermediateFolder", intermediateFolder,
406 "-o", msiPath
407 });
408
409 result.AssertSuccess();
410
411 Assert.True(File.Exists(msiPath));
412 var results = Query.QueryDatabase(msiPath, new[] { "CustomTable2" });
413 Assert.Empty(results);
414 }
415 }
416
417 [Fact]
388 public void PopulatesDirectoryTableWithValidDefaultDir() 418 public void PopulatesDirectoryTableWithValidDefaultDir()
389 { 419 {
390 var folder = TestData.Get(@"TestData"); 420 var folder = TestData.Get(@"TestData");
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/CustomTable/CustomTable.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/CustomTable/CustomTable.wxs
index 649b29b6..8eb4fbf9 100644
--- a/src/test/WixToolsetTest.CoreIntegration/TestData/CustomTable/CustomTable.wxs
+++ b/src/test/WixToolsetTest.CoreIntegration/TestData/CustomTable/CustomTable.wxs
@@ -17,5 +17,18 @@
17 <Data Column="Component_">test.txt</Data> 17 <Data Column="Component_">test.txt</Data>
18 </Row> 18 </Row>
19 </CustomTable> 19 </CustomTable>
20
21 <CustomTable Id="CustomTable2" Unreal="yes">
22 <Column Id="ColumnA" Type="string" PrimaryKey="yes" />
23 <Column Id="Component_" Type="string" Width="72" KeyTable="Component" KeyColumn="1" />
24 <Row>
25 <Data Column="ColumnA">RowA</Data>
26 <Data Column="Component_">test.txt</Data>
27 </Row>
28 <Row>
29 <Data Column="ColumnA">RowB</Data>
30 <Data Column="Component_">test.txt</Data>
31 </Row>
32 </CustomTable>
20 </Fragment> 33 </Fragment>
21</Wix> 34</Wix>