@joebigelow / wix / commits / 86895639

Add failing test for TextStyle when Color is null.

Sean Hall committed Oct 15, 2019 at 10:52 UTC 868956398ebb9ac6cc47266b185ec39c94b57b6e
3 files changed +46
src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
+33
@@ -647,6 +647,39 @@ namespace WixToolsetTest.CoreIntegration
647 }
648 }
649
650 + [Fact(Skip = "Test demonstrates failure")]
651 + public void PopulatesTextStyleTableWhenColorIsNull()
652 + {
653 + var folder = TestData.Get(@"TestData");
654 +
655 + using (var fs = new DisposableFileSystem())
656 + {
657 + var baseFolder = fs.GetFolder();
658 + var intermediateFolder = Path.Combine(baseFolder, "obj");
659 + var msiPath = Path.Combine(baseFolder, @"bin\test.msi");
660 +
661 + var result = WixRunner.Execute(new[]
662 + {
663 + "build",
664 + Path.Combine(folder, "TextStyle", "ColorNull.wxs"),
665 + Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"),
666 + Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"),
667 + "-bindpath", Path.Combine(folder, "SingleFile", "data"),
668 + "-intermediateFolder", intermediateFolder,
669 + "-o", msiPath
670 + });
671 +
672 + result.AssertSuccess();
673 +
674 + Assert.True(File.Exists(msiPath));
675 + var results = Query.QueryDatabase(msiPath, new[] { "TextStyle" });
676 + Assert.Equal(new[]
677 + {
678 + "TextStyle:FirstTextStyle\tArial\t2\t\t",
679 + }, results);
680 + }
681 + }
682 +
683 [Fact]
684 public void PopulatesUpgradeTableFromManualUpgrade()
685 {
src/test/WixToolsetTest.CoreIntegration/TestData/TextStyle/ColorNull.wxs new
+12
@@ -0,0 +1,12 @@
1 +<?xml version="1.0" encoding="utf-8"?>
2 +<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
3 + <Fragment>
4 + <ComponentGroup Id="ProductComponents">
5 + <ComponentGroupRef Id="MinimalComponentGroup"></ComponentGroupRef>
6 + </ComponentGroup>
7 +
8 + <UI Id="CustomUI">
9 + <TextStyle Id="FirstTextStyle" FaceName="Arial" Size="2" />
10 + </UI>
11 + </Fragment>
12 +</Wix>
src/test/WixToolsetTest.CoreIntegration/WixToolsetTest.CoreIntegration.csproj
+1
@@ -113,6 +113,7 @@
113 <Content Include="TestData\OverridableActions\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" />
114 <Content Include="TestData\OverridableActions\Package.wxs" CopyToOutputDirectory="PreserveNewest" />
115 <Content Include="TestData\OverridableActions\PackageComponents.wxs" CopyToOutputDirectory="PreserveNewest" />
116 + <Content Include="TestData\TextStyle\ColorNull.wxs" CopyToOutputDirectory="PreserveNewest" />
117 <Content Include="TestData\Wixipl\data\test.txt" CopyToOutputDirectory="PreserveNewest" />
118 <Content Include="TestData\Wixipl\Package.en-us.wxl" CopyToOutputDirectory="PreserveNewest" />
119 <Content Include="TestData\Wixipl\Package.wxs" CopyToOutputDirectory="PreserveNewest" />