aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2019-09-30 11:58:11 +1000
committerSean Hall <r.sean.hall@gmail.com>2019-09-30 13:14:35 +1000
commit6e691be7e8276b3a44a6631d7da8b3e09c8b103d (patch)
tree9d1a98898ffecc3612bf7d1b26faf7db6d01d5b9 /src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
parente23ee409c762dbc8d5f63007a15765b12706a1f0 (diff)
downloadwix-6e691be7e8276b3a44a6631d7da8b3e09c8b103d.tar.gz
wix-6e691be7e8276b3a44a6631d7da8b3e09c8b103d.tar.bz2
wix-6e691be7e8276b3a44a6631d7da8b3e09c8b103d.zip
Add failing test for MsiAssembly.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs36
1 files changed, 36 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
index e60f74fb..2c064a58 100644
--- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
+++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
@@ -412,6 +412,42 @@ namespace WixToolsetTest.CoreIntegration
412 } 412 }
413 413
414 [Fact(Skip = "Test demonstrates failure")] 414 [Fact(Skip = "Test demonstrates failure")]
415 public void PopulatesMsiAssemblyTables()
416 {
417 var folder = TestData.Get(@"TestData");
418
419 using (var fs = new DisposableFileSystem())
420 {
421 var baseFolder = fs.GetFolder();
422 var intermediateFolder = Path.Combine(baseFolder, "obj");
423 var msiPath = Path.Combine(baseFolder, @"bin\test.msi");
424
425 var result = WixRunner.Execute(new[]
426 {
427 "build",
428 Path.Combine(folder, "Assembly", "Win32Assembly.wxs"),
429 Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"),
430 Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"),
431 "-bindpath", Path.Combine(folder, "Assembly", "data"),
432 "-bindpath", Path.Combine(folder, "SingleFile", "data"),
433 "-intermediateFolder", intermediateFolder,
434 "-o", msiPath
435 });
436
437 result.AssertSuccess();
438
439 Assert.True(File.Exists(msiPath));
440 var results = Query.QueryDatabase(msiPath, new[] { "MsiAssembly", "MsiAssemblyName" });
441 Assert.Equal(new[]
442 {
443 "MsiAssembly:test.txt\tProductFeature\ttest.dll.manifest\t\t1",
444 "MsiAssemblyName:test.txt\tname\tMyApplication.app",
445 "MsiAssemblyName:test.txt\tversion\t1.0.0.0",
446 }, results);
447 }
448 }
449
450 [Fact(Skip = "Test demonstrates failure")]
415 public void PopulatesMsiShortcutPropertyTable() 451 public void PopulatesMsiShortcutPropertyTable()
416 { 452 {
417 var folder = TestData.Get(@"TestData"); 453 var folder = TestData.Get(@"TestData");