diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-10-11 14:59:56 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-10-11 15:39:29 +1000 |
| commit | 664ce5ac707905b631f9a752cab0d2dc1b7d6edc (patch) | |
| tree | 466b380fdfa640b5b0d509a898ec1500a34e95b7 /src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |
| parent | 17c717d302fd8c6ecc89e5611377bafcdd733f43 (diff) | |
| download | wix-664ce5ac707905b631f9a752cab0d2dc1b7d6edc.tar.gz wix-664ce5ac707905b631f9a752cab0d2dc1b7d6edc.tar.bz2 wix-664ce5ac707905b631f9a752cab0d2dc1b7d6edc.zip | |
Add failing test for CustomTable.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index 724126bb..950ac40c 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
| @@ -217,6 +217,40 @@ namespace WixToolsetTest.CoreIntegration | |||
| 217 | } | 217 | } |
| 218 | } | 218 | } |
| 219 | 219 | ||
| 220 | [Fact(Skip = "Test demonstrates failure")] | ||
| 221 | public void PopulatesCustomTable1() | ||
| 222 | { | ||
| 223 | var folder = TestData.Get(@"TestData"); | ||
| 224 | |||
| 225 | using (var fs = new DisposableFileSystem()) | ||
| 226 | { | ||
| 227 | var baseFolder = fs.GetFolder(); | ||
| 228 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 229 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
| 230 | |||
| 231 | var result = WixRunner.Execute(new[] | ||
| 232 | { | ||
| 233 | "build", | ||
| 234 | Path.Combine(folder, "CustomTable", "CustomTable.wxs"), | ||
| 235 | Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), | ||
| 236 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
| 237 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
| 238 | "-intermediateFolder", intermediateFolder, | ||
| 239 | "-o", msiPath | ||
| 240 | }); | ||
| 241 | |||
| 242 | result.AssertSuccess(); | ||
| 243 | |||
| 244 | Assert.True(File.Exists(msiPath)); | ||
| 245 | var results = Query.QueryDatabase(msiPath, new[] { "CustomTable1" }); | ||
| 246 | Assert.Equal(new[] | ||
| 247 | { | ||
| 248 | "CustomTable1:Row1\ttest.txt", | ||
| 249 | "CustomTable1:Row2\ttest.txt", | ||
| 250 | }, results); | ||
| 251 | } | ||
| 252 | } | ||
| 253 | |||
| 220 | [Fact] | 254 | [Fact] |
| 221 | public void PopulatesDirectoryTableWithValidDefaultDir() | 255 | public void PopulatesDirectoryTableWithValidDefaultDir() |
| 222 | { | 256 | { |
