diff options
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 | { |