diff options
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 82934b9a..4fb136d5 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
@@ -50,5 +50,40 @@ namespace WixToolsetTest.CoreIntegration | |||
50 | }, results); | 50 | }, results); |
51 | } | 51 | } |
52 | } | 52 | } |
53 | |||
54 | [Fact(Skip = "Test demonstrates failure")] | ||
55 | public void PopulatesFeatureTableWithParent() | ||
56 | { | ||
57 | var folder = TestData.Get(@"TestData"); | ||
58 | |||
59 | using (var fs = new DisposableFileSystem()) | ||
60 | { | ||
61 | var baseFolder = fs.GetFolder(); | ||
62 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
63 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
64 | |||
65 | var result = WixRunner.Execute(new[] | ||
66 | { | ||
67 | "build", | ||
68 | Path.Combine(folder, "FeatureGroup", "FeatureGroup.wxs"), | ||
69 | Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), | ||
70 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
71 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
72 | "-intermediateFolder", intermediateFolder, | ||
73 | "-o", msiPath | ||
74 | }); | ||
75 | |||
76 | result.AssertSuccess(); | ||
77 | |||
78 | Assert.True(File.Exists(msiPath)); | ||
79 | var results = Query.QueryDatabase(msiPath, new[] { "Feature" }); | ||
80 | Assert.Equal(new[] | ||
81 | { | ||
82 | "Feature:ChildFeature\tParentFeature\tChildFeatureTitle\t\t2\t1\t\t0", | ||
83 | "Feature:ParentFeature\t\tParentFeatureTitle\t\t2\t1\t\t0", | ||
84 | "Feature:ProductFeature\t\tMsiPackageTitle\t\t2\t1\t\t0", | ||
85 | }, results); | ||
86 | } | ||
87 | } | ||
53 | } | 88 | } |
54 | } | 89 | } |