diff options
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 e7443f35..fb42d8fc 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
@@ -147,6 +147,40 @@ namespace WixToolsetTest.CoreIntegration | |||
147 | } | 147 | } |
148 | 148 | ||
149 | [Fact(Skip = "Test demonstrates failure")] | 149 | [Fact(Skip = "Test demonstrates failure")] |
150 | public void PopulatesCustomActionTable() | ||
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, "CustomAction", "UnscheduledCustomAction.wxs"), | ||
164 | Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), | ||
165 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
166 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
167 | "-intermediateFolder", intermediateFolder, | ||
168 | "-o", msiPath | ||
169 | }); | ||
170 | |||
171 | result.AssertSuccess(); | ||
172 | |||
173 | Assert.True(File.Exists(msiPath)); | ||
174 | var results = Query.QueryDatabase(msiPath, new[] { "Binary", "CustomAction" }); | ||
175 | Assert.Equal(new[] | ||
176 | { | ||
177 | "Binary:Binary1\t[Binary data]", | ||
178 | "CustomAction:CustomAction1\t1\tBinary1\tInvalidEntryPoint\t", | ||
179 | }, results); | ||
180 | } | ||
181 | } | ||
182 | |||
183 | [Fact(Skip = "Test demonstrates failure")] | ||
150 | public void PopulatesDirectoryTableWithValidDefaultDir() | 184 | public void PopulatesDirectoryTableWithValidDefaultDir() |
151 | { | 185 | { |
152 | var folder = TestData.Get(@"TestData"); | 186 | var folder = TestData.Get(@"TestData"); |