aboutsummaryrefslogtreecommitdiff
path: root/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
-rw-r--r--src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs35
1 files changed, 35 insertions, 0 deletions
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
@@ -147,6 +147,41 @@ namespace WixToolsetTest.CoreIntegration
147 } 147 }
148 148
149 [Fact(Skip = "Test demonstrates failure")] 149 [Fact(Skip = "Test demonstrates failure")]
150 public void PopulatesClassTablesWhenIconIndexIsZero()
151 {
152 var folder = TestData.Get(@"TestData");
153
154 using (var fs = new DisposableFileSystem())
155 {
156 var baseFolder = fs.GetFolder();
157 var intermediateFolder = Path.Combine(baseFolder, "obj");
158 var msiPath = Path.Combine(baseFolder, @"bin\test.msi");
159
160 var result = WixRunner.Execute(new[]
161 {
162 "build",
163 Path.Combine(folder, "Class", "IconIndex0.wxs"),
164 Path.Combine(folder, "Icon", "SampleIcon.wxs"),
165 Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"),
166 Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"),
167 "-bindpath", Path.Combine(folder, ".Data"),
168 "-bindpath", Path.Combine(folder, "SingleFile", "data"),
169 "-intermediateFolder", intermediateFolder,
170 "-o", msiPath
171 });
172
173 result.AssertSuccess();
174
175 Assert.True(File.Exists(msiPath));
176 var results = Query.QueryDatabase(msiPath, new[] { "Class" });
177 Assert.Equal(new[]
178 {
179 "Class:{3FAED4CC-C473-4B8A-BE8B-303871377A4A}\tLocalServer32\tClassComp\t\tFakeClass3FAE\t\t\tSampleIcon\t0\t\t\tProductFeature\t",
180 }, results);
181 }
182 }
183
184 [Fact(Skip = "Test demonstrates failure")]
150 public void PopulatesClassTablesWhenProgIdIsNestedUnderAdvertisedClass() 185 public void PopulatesClassTablesWhenProgIdIsNestedUnderAdvertisedClass()
151 { 186 {
152 var folder = TestData.Get(@"TestData"); 187 var folder = TestData.Get(@"TestData");