diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-10-15 10:07:00 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-10-15 11:20:07 +1000 |
| commit | 9dbf5fbb89d146f1ced4a36072a66b9a24fb9015 (patch) | |
| tree | 2287ab7018f270f8ca88b21f7655a7d751864eee /src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |
| parent | 5ee3e62691e09ffd3edc9bfafa4deddb26f155c5 (diff) | |
| download | wix-9dbf5fbb89d146f1ced4a36072a66b9a24fb9015.tar.gz wix-9dbf5fbb89d146f1ced4a36072a66b9a24fb9015.tar.bz2 wix-9dbf5fbb89d146f1ced4a36072a66b9a24fb9015.zip | |
Add failing test for Class when IconIndex is 0.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 35 |
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"); |
