diff options
Diffstat (limited to 'src/test/WixToolsetTest.Util/UtilExtensionFixture.cs')
-rw-r--r-- | src/test/WixToolsetTest.Util/UtilExtensionFixture.cs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.Util/UtilExtensionFixture.cs b/src/test/WixToolsetTest.Util/UtilExtensionFixture.cs index a32a7d62..d9440614 100644 --- a/src/test/WixToolsetTest.Util/UtilExtensionFixture.cs +++ b/src/test/WixToolsetTest.Util/UtilExtensionFixture.cs | |||
@@ -173,6 +173,33 @@ namespace WixToolsetTest.Util | |||
173 | } | 173 | } |
174 | 174 | ||
175 | [Fact] | 175 | [Fact] |
176 | public void CanBuildWithXmlConfig() | ||
177 | { | ||
178 | var folder = TestData.Get(@"TestData", "XmlConfig"); | ||
179 | var build = new Builder(folder, typeof(UtilExtensionFactory), new[] { folder }); | ||
180 | |||
181 | var results = build.BuildAndQuery(BuildX64, "Wix4XmlConfig"); | ||
182 | WixAssert.CompareLineByLine(new[] | ||
183 | { | ||
184 | "Wix4XmlConfig:DelElement\t[INSTALLFOLDER]my.xml\t\t//root/sub\txxx\t\t\t289\tDel\t1", | ||
185 | }, results.OrderBy(s => s).ToArray()); | ||
186 | } | ||
187 | |||
188 | [Fact] | ||
189 | public void CanBuildModuleWithXmlConfig() | ||
190 | { | ||
191 | var folder = TestData.Get(@"TestData", "XmlConfigModule"); | ||
192 | var build = new Builder(folder, typeof(UtilExtensionFactory), new[] { folder }); | ||
193 | |||
194 | var results = build.BuildAndQuery(BuildX64, "Wix4XmlConfig"); | ||
195 | WixAssert.CompareLineByLine(new[] | ||
196 | { | ||
197 | "Wix4XmlConfig:AddElement.047730A5_30FE_4A62_A520_DA9381B8226A\t[my.xml.047730A5_30FE_4A62_A520_DA9381B8226A]\t\t//root/sub\txxx\t\t\t273\tParent.047730A5_30FE_4A62_A520_DA9381B8226A\t1", | ||
198 | "Wix4XmlConfig:ChildElement.047730A5_30FE_4A62_A520_DA9381B8226A\t[my.xml.047730A5_30FE_4A62_A520_DA9381B8226A]\tAddElement.047730A5_30FE_4A62_A520_DA9381B8226A\t\txxx\t\t\t0\tChild.047730A5_30FE_4A62_A520_DA9381B8226A\t1", | ||
199 | }, results.OrderBy(s => s).ToArray()); | ||
200 | } | ||
201 | |||
202 | [Fact] | ||
176 | public void CanBuildBundleWithSearches() | 203 | public void CanBuildBundleWithSearches() |
177 | { | 204 | { |
178 | var burnStubPath = TestData.Get(@"TestData\.Data\burn.exe"); | 205 | var burnStubPath = TestData.Get(@"TestData\.Data\burn.exe"); |