Add failing test for Font.
Sean Hall committed
Sep 30, 2019 at 11:43 UTC
e23ee409c762dbc8d5f63007a15765b12706a1f0
3 files changed
+44
src/test/WixToolsetTest.CoreIntegration/MsiQueryFixture.cs
+33
@@ -294,6 +294,39 @@ namespace WixToolsetTest.CoreIntegration
294
}
295
}
296
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")]
331
public void PopulatesInstallExecuteSequenceTable()
332
{
src/test/WixToolsetTest.CoreIntegration/TestData/Font/FontTitle.wxs
new
+10
@@ -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>
src/test/WixToolsetTest.CoreIntegration/WixToolsetTest.CoreIntegration.csproj
+1
@@ -24,6 +24,7 @@
24
<Content Include="TestData\DialogsInInstallUISequence\Package.wxs" CopyToOutputDirectory="PreserveNewest" />
25
<Content Include="TestData\DialogsInInstallUISequence\PackageComponents.wxs" CopyToOutputDirectory="PreserveNewest" />
26
<Content Include="TestData\FeatureGroup\FeatureGroup.wxs" CopyToOutputDirectory="PreserveNewest" />
27
+ <Content Include="TestData\Font\FontTitle.wxs" CopyToOutputDirectory="PreserveNewest" />
28
<Content Include="TestData\LockPermissions\EmptyPermissions.wxs" CopyToOutputDirectory="PreserveNewest" />
29
<Content Include="TestData\ProductWithComponentGroupRef\MinimalComponentGroup.wxs" CopyToOutputDirectory="PreserveNewest" />
30
<Content Include="TestData\ProductWithComponentGroupRef\Product.wxs" CopyToOutputDirectory="PreserveNewest" />