From 9dbf5fbb89d146f1ced4a36072a66b9a24fb9015 Mon Sep 17 00:00:00 2001 From: Sean Hall Date: Tue, 15 Oct 2019 10:07:00 +1000 Subject: Add failing test for Class when IconIndex is 0. --- .../MsiQueryFixture.cs | 35 ++++++++++++++++++++++ 1 file changed, 35 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 bbce87cd..d5dcba54 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs @@ -146,6 +146,41 @@ namespace WixToolsetTest.CoreIntegration } } + [Fact(Skip = "Test demonstrates failure")] + public void PopulatesClassTablesWhenIconIndexIsZero() + { + 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, "Class", "IconIndex0.wxs"), + Path.Combine(folder, "Icon", "SampleIcon.wxs"), + Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), + Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), + "-bindpath", Path.Combine(folder, ".Data"), + "-bindpath", Path.Combine(folder, "SingleFile", "data"), + "-intermediateFolder", intermediateFolder, + "-o", msiPath + }); + + result.AssertSuccess(); + + Assert.True(File.Exists(msiPath)); + var results = Query.QueryDatabase(msiPath, new[] { "Class" }); + Assert.Equal(new[] + { + "Class:{3FAED4CC-C473-4B8A-BE8B-303871377A4A}\tLocalServer32\tClassComp\t\tFakeClass3FAE\t\t\tSampleIcon\t0\t\t\tProductFeature\t", + }, results); + } + } + [Fact(Skip = "Test demonstrates failure")] public void PopulatesClassTablesWhenProgIdIsNestedUnderAdvertisedClass() { -- cgit v1.2.3-55-g6feb