diff options
| author | Sean Hall <r.sean.hall@gmail.com> | 2019-09-30 11:43:19 +1000 |
|---|---|---|
| committer | Sean Hall <r.sean.hall@gmail.com> | 2019-09-30 13:14:35 +1000 |
| commit | e23ee409c762dbc8d5f63007a15765b12706a1f0 (patch) | |
| tree | e85390175694bc303d094e28bdf59452adc43d15 /src/test/WixToolsetTest.CoreIntegration | |
| parent | 4d52ab54b8ea64507ffe94910cbcfdf07d7d93c8 (diff) | |
| download | wix-e23ee409c762dbc8d5f63007a15765b12706a1f0.tar.gz wix-e23ee409c762dbc8d5f63007a15765b12706a1f0.tar.bz2 wix-e23ee409c762dbc8d5f63007a15765b12706a1f0.zip | |
Add failing test for Font.
Diffstat (limited to 'src/test/WixToolsetTest.CoreIntegration')
3 files changed, 44 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs index 1e934421..e60f74fb 100644 --- a/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs +++ b/src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs | |||
| @@ -295,6 +295,39 @@ namespace WixToolsetTest.CoreIntegration | |||
| 295 | } | 295 | } |
| 296 | 296 | ||
| 297 | [Fact(Skip = "Test demonstrates failure")] | 297 | [Fact(Skip = "Test demonstrates failure")] |
| 298 | public void PopulatesFontTable() | ||
| 299 | { | ||
| 300 | var folder = TestData.Get(@"TestData"); | ||
| 301 | |||
| 302 | using (var fs = new DisposableFileSystem()) | ||
| 303 | { | ||
| 304 | var baseFolder = fs.GetFolder(); | ||
| 305 | var intermediateFolder = Path.Combine(baseFolder, "obj"); | ||
| 306 | var msiPath = Path.Combine(baseFolder, @"bin\test.msi"); | ||
| 307 | |||
| 308 | var result = WixRunner.Execute(new[] | ||
| 309 | { | ||
| 310 | "build", | ||
| 311 | Path.Combine(folder, "Font", "FontTitle.wxs"), | ||
| 312 | Path.Combine(folder, "ProductWithComponentGroupRef", "MinimalComponentGroup.wxs"), | ||
| 313 | Path.Combine(folder, "ProductWithComponentGroupRef", "Product.wxs"), | ||
| 314 | "-bindpath", Path.Combine(folder, "SingleFile", "data"), | ||
| 315 | "-intermediateFolder", intermediateFolder, | ||
| 316 | "-o", msiPath | ||
| 317 | }); | ||
| 318 | |||
| 319 | result.AssertSuccess(); | ||
| 320 | |||
| 321 | Assert.True(File.Exists(msiPath)); | ||
| 322 | var results = Query.QueryDatabase(msiPath, new[] { "Font" }); | ||
| 323 | Assert.Equal(new[] | ||
| 324 | { | ||
| 325 | "Font:test.txt\tFakeFont", | ||
| 326 | }, results); | ||
| 327 | } | ||
| 328 | } | ||
| 329 | |||
| 330 | [Fact(Skip = "Test demonstrates failure")] | ||
| 298 | public void PopulatesInstallExecuteSequenceTable() | 331 | public void PopulatesInstallExecuteSequenceTable() |
| 299 | { | 332 | { |
| 300 | var folder = TestData.Get(@"TestData"); | 333 | var folder = TestData.Get(@"TestData"); |
diff --git a/src/test/WixToolsetTest.CoreIntegration/TestData/Font/FontTitle.wxs b/src/test/WixToolsetTest.CoreIntegration/TestData/Font/FontTitle.wxs new file mode 100644 index 00000000..b7899b87 --- /dev/null +++ b/src/test/WixToolsetTest.CoreIntegration/TestData/Font/FontTitle.wxs | |||
| @@ -0,0 +1,10 @@ | |||
| 1 | <?xml version="1.0" encoding="utf-8"?> | ||
| 2 | <Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> | ||
| 3 | <Fragment> | ||
| 4 | <ComponentGroup Id="ProductComponents"> | ||
| 5 | <Component Id="FontComp" Directory="INSTALLFOLDER"> | ||
| 6 | <File Source="test.txt" FontTitle="FakeFont" /> | ||
| 7 | </Component> | ||
| 8 | </ComponentGroup> | ||
| 9 | </Fragment> | ||
| 10 | </Wix> | ||
diff --git a/src/test/WixToolsetTest.CoreIntegration/WixToolsetTest.CoreIntegration.csproj b/src/test/WixToolsetTest.CoreIntegration/WixToolsetTest.CoreIntegration.csproj index 0ae6cd8c..e8eaf970 100644 --- a/src/test/WixToolsetTest.CoreIntegration/WixToolsetTest.CoreIntegration.csproj +++ b/src/test/WixToolsetTest.CoreIntegration/WixToolsetTest.CoreIntegration.csproj | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | <Content Include="TestData\DialogsInInstallUISequence\Package.wxs" CopyToOutputDirectory="PreserveNewest" /> | 24 | <Content Include="TestData\DialogsInInstallUISequence\Package.wxs" CopyToOutputDirectory="PreserveNewest" /> |
| 25 | <Content Include="TestData\DialogsInInstallUISequence\PackageComponents.wxs" CopyToOutputDirectory="PreserveNewest" /> | 25 | <Content Include="TestData\DialogsInInstallUISequence\PackageComponents.wxs" CopyToOutputDirectory="PreserveNewest" /> |
| 26 | <Content Include="TestData\FeatureGroup\FeatureGroup.wxs" CopyToOutputDirectory="PreserveNewest" /> | 26 | <Content Include="TestData\FeatureGroup\FeatureGroup.wxs" CopyToOutputDirectory="PreserveNewest" /> |
| 27 | <Content Include="TestData\Font\FontTitle.wxs" CopyToOutputDirectory="PreserveNewest" /> | ||
| 27 | <Content Include="TestData\LockPermissions\EmptyPermissions.wxs" CopyToOutputDirectory="PreserveNewest" /> | 28 | <Content Include="TestData\LockPermissions\EmptyPermissions.wxs" CopyToOutputDirectory="PreserveNewest" /> |
| 28 | <Content Include="TestData\ProductWithComponentGroupRef\MinimalComponentGroup.wxs" CopyToOutputDirectory="PreserveNewest" /> | 29 | <Content Include="TestData\ProductWithComponentGroupRef\MinimalComponentGroup.wxs" CopyToOutputDirectory="PreserveNewest" /> |
| 29 | <Content Include="TestData\ProductWithComponentGroupRef\Product.wxs" CopyToOutputDirectory="PreserveNewest" /> | 30 | <Content Include="TestData\ProductWithComponentGroupRef\Product.wxs" CopyToOutputDirectory="PreserveNewest" /> |
