From 6e691be7e8276b3a44a6631d7da8b3e09c8b103d Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Mon, 30 Sep 2019 11:58:11 +1000 Subject: Add failing test for MsiAssembly. --- .../MsiQueryFixture.cs | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs') 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 @@ -411,6 +411,42 @@ namespace WixToolsetTest.CoreIntegration } } + [Fact(Skip = "Test demonstrates failure")] + public void PopulatesMsiAssemblyTables() + { + var folder = TestData.Get(@"TestData"); + + using (var fs = new DisposableFileSystem()) + { + var baseFolder = fs.GetFolder(); + var intermediateFolder = Path.Combine(baseFolder, "obj"); + var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); + + var result = WixRunner.Execute(new[] + { + "build", + Path.Combine(folder, "Assembly", "Win32Assembly.wxs"), + Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), + Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), + "-bindpath", Path.Combine(folder, "Assembly", "data"), + "-bindpath", Path.Combine(folder, "SingleFile", "data"), + "-intermediateFolder", intermediateFolder, + "-o", msiPath + }); + + result.AssertSuccess(); + + Assert.True(File.Exists(msiPath)); + var results = Query.QueryDatabase(msiPath, new[] { "MsiAssembly", "MsiAssemblyName" }); + Assert.Equal(new[] + { + "MsiAssembly:test.txt\tProductFeature\ttest.dll.manifest\t\t1", + "MsiAssemblyName:test.txt\tname\tMyApplication.app", + "MsiAssemblyName:test.txt\tversion\t1.0.0.0", + }, results); + } + } + [Fact(Skip = "Test demonstrates failure")] public void PopulatesMsiShortcutPropertyTable() { -- cgit v1.2.3-55-g6feb