diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-01-12 16:33:59 -0600 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-01-12 17:00:22 -0600 |
| commit | a8e31958d7e1b0ef10ea8035abf1e3bf07170eb8 (patch) | |
| tree | 5a54ef7491ba49f2fd65c2bc97b2f1afd6c0132b /src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs | |
| parent | 9d55d0078155316f3faf799fcf98f123c91617b6 (diff) | |
| download | wix-a8e31958d7e1b0ef10ea8035abf1e3bf07170eb8.tar.gz wix-a8e31958d7e1b0ef10ea8035abf1e3bf07170eb8.tar.bz2 wix-a8e31958d7e1b0ef10ea8035abf1e3bf07170eb8.zip | |
Add failing test for issues exposed by UIExtension.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs index 76f57676..b5e1ec3d 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiFixture.cs | |||
| @@ -206,6 +206,47 @@ namespace WixToolsetTest.CoreIntegration | |||
| 206 | } | 206 | } |
| 207 | } | 207 | } |
| 208 | 208 | ||
| 209 | [Fact(Skip = "Currently fails")] | ||
| 210 | public void CanBuildDialogsInInstallUISequence() | ||
| 211 | { | ||
| 212 | var folder = TestData.Get(@"TestData\DialogsInInstallUISequence"); | ||
| 213 | |||
| 214 | using (var fs = new DisposableFileSystem()) | ||
| 215 | { | ||
| 216 | var baseFolder = fs.GetFolder(); | ||
| 217 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 218 | |||
| 219 | var result = WixRunner.Execute(new[] | ||
| 220 | { | ||
| 221 | "build", | ||
| 222 | Path.Combine(folder, "Package.wxs"), | ||
| 223 | Path.Combine(folder, "PackageComponents.wxs"), | ||
| 224 | "-loc", Path.Combine(folder, "Package.en-us.wxl"), | ||
| 225 | "-bindpath", Path.Combine(folder, "data"), | ||
| 226 | "-intermediateFolder", intermediateFolder, | ||
| 227 | "-o", Path.Combine(baseFolder, @"bin\test.msi") | ||
| 228 | }); | ||
| 229 | |||
| 230 | result.AssertSuccess(); | ||
| 231 | |||
| 232 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.msi"))); | ||
| 233 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\test.wixpdb"))); | ||
| 234 | Assert.True(File.Exists(Path.Combine(baseFolder, @"bin\MsiPackage\test.txt"))); | ||
| 235 | |||
| 236 | var intermediate = Intermediate.Load(Path.Combine(intermediateFolder, @"test.wir")); | ||
| 237 | var section = intermediate.Sections.Single(); | ||
| 238 | |||
| 239 | var textStyle = section.Tuples.OfType<TextStyleTuple>().Single(); | ||
| 240 | Assert.Equal("Tahoma", textStyle.FaceName); | ||
| 241 | Assert.Equal(8, textStyle.Size); | ||
| 242 | |||
| 243 | var installUIActions = section.Tuples.OfType<WixActionTuple>() | ||
| 244 | .Where(t => t.SequenceTable == SequenceTable.InstallUISequence) | ||
| 245 | .ToList(); | ||
| 246 | Assert.Equal(10, installUIActions.Count); | ||
| 247 | } | ||
| 248 | } | ||
| 249 | |||
| 209 | [Fact] | 250 | [Fact] |
| 210 | public void CanLoadPdbGeneratedByBuild() | 251 | public void CanLoadPdbGeneratedByBuild() |
| 211 | { | 252 | { |
