diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-10-27 10:10:47 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-10-27 10:22:38 +1000 |
| commit | 1e3e48ac376ca689d524fe69a7f1a40fcd1573df (patch) | |
| tree | 17c495968ed9682e9b7209cf101b744a22a82181 /src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |
| parent | 6eab6255f832007886c4b01861dc39d5582177ef (diff) | |
| download | wix-1e3e48ac376ca689d524fe69a7f1a40fcd1573df.tar.gz wix-1e3e48ac376ca689d524fe69a7f1a40fcd1573df.tar.bz2 wix-1e3e48ac376ca689d524fe69a7f1a40fcd1573df.zip | |
Add failing test for AppId.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index 1b302065..fa14f06c 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
| @@ -9,6 +9,39 @@ namespace WixToolsetTest.CoreIntegration | |||
| 9 | 9 | ||
| 10 | public class MsiQueryFixture | 10 | public class MsiQueryFixture |
| 11 | { | 11 | { |
| 12 | [Fact(Skip = "Test demonstrates failure")] | ||
| 13 | public void PopulatesAppIdTableWhenAdvertised() | ||
| 14 | { | ||
| 15 | var folder = TestData.Get(@"TestData"); | ||
| 16 | |||
| 17 | using (var fs = new DisposableFileSystem()) | ||
| 18 | { | ||
| 19 | var baseFolder = fs.GetFolder(); | ||
| 20 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 21 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
| 22 | |||
| 23 | var result = WixRunner.Execute(new[] | ||
| 24 | { | ||
| 25 | "build", | ||
| 26 | Path.Combine(folder, "AppId", "Advertised.wxs"), | ||
| 27 | Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), | ||
| 28 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
| 29 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
| 30 | "-intermediateFolder", intermediateFolder, | ||
| 31 | "-o", msiPath | ||
| 32 | }); | ||
| 33 | |||
| 34 | result.AssertSuccess(); | ||
| 35 | |||
| 36 | Assert.True(File.Exists(msiPath)); | ||
| 37 | var results = Query.QueryDatabase(msiPath, new[] { "AppId" }); | ||
| 38 | Assert.Equal(new[] | ||
| 39 | { | ||
| 40 | "AppId:{D6040299-B15C-4C94-AE26-0C9B60D14C35}\t\t\t\t\t\t", | ||
| 41 | }, results); | ||
| 42 | } | ||
| 43 | } | ||
| 44 | |||
| 12 | [Fact] | 45 | [Fact] |
| 13 | public void PopulatesAppSearchTablesFromComponentSearch() | 46 | public void PopulatesAppSearchTablesFromComponentSearch() |
| 14 | { | 47 | { |
