diff options
author | Bob Arnson <bob@joyofsetup.com> | 2019-11-01 18:03:29 -0400 |
---|---|---|
committer | Bob Arnson <bob@firegiant.com> | 2019-11-01 18:05:48 -0400 |
commit | 2c6285da46439ec98f89f09e2029f801924014ed (patch) | |
tree | d302a6efd422572693f32ef7608e97c3da4307a2 /src/test | |
parent | 8b1861a0d9fc636f02ccb9452946863e31a46b78 (diff) | |
download | wix-2c6285da46439ec98f89f09e2029f801924014ed.tar.gz wix-2c6285da46439ec98f89f09e2029f801924014ed.tar.bz2 wix-2c6285da46439ec98f89f09e2029f801924014ed.zip |
Handle CustomTable/@BootstrapperApplicationData.
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/WixToolsetTest.Converters/ConverterFixture.cs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/src/test/WixToolsetTest.Converters/ConverterFixture.cs b/src/test/WixToolsetTest.Converters/ConverterFixture.cs index 71069333..e2c0be5b 100644 --- a/src/test/WixToolsetTest.Converters/ConverterFixture.cs +++ b/src/test/WixToolsetTest.Converters/ConverterFixture.cs | |||
@@ -450,6 +450,34 @@ namespace WixToolsetTest.Converters | |||
450 | } | 450 | } |
451 | 451 | ||
452 | [Fact] | 452 | [Fact] |
453 | public void CanConvertCustomTableBootstrapperApplicationData() | ||
454 | { | ||
455 | var parse = String.Join(Environment.NewLine, | ||
456 | "<?xml version='1.0' encoding='utf-8'?>", | ||
457 | "<Wix xmlns='http://wixtoolset.org/schemas/v4/wxs'>", | ||
458 | " <CustomTable Id='FgAppx' BootstrapperApplicationData='yes' />", | ||
459 | "</Wix>"); | ||
460 | |||
461 | var expected = String.Join(Environment.NewLine, | ||
462 | "<?xml version=\"1.0\" encoding=\"utf-16\"?>", | ||
463 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", | ||
464 | " <CustomTable Id=\"FgAppx\" Unreal=\"yes\" />", | ||
465 | "</Wix>"); | ||
466 | |||
467 | var document = XDocument.Parse(parse, LoadOptions.PreserveWhitespace | LoadOptions.SetLineInfo); | ||
468 | |||
469 | var messaging = new DummyMessaging(); | ||
470 | var converter = new Wix3Converter(messaging, 2, null, null); | ||
471 | |||
472 | var errors = converter.ConvertDocument(document); | ||
473 | |||
474 | var actual = UnformattedDocumentString(document); | ||
475 | |||
476 | Assert.Equal(1, errors); | ||
477 | Assert.Equal(expected, actual); | ||
478 | } | ||
479 | |||
480 | [Fact] | ||
453 | public void CanConvertShortNameDirectoryWithoutName() | 481 | public void CanConvertShortNameDirectoryWithoutName() |
454 | { | 482 | { |
455 | var parse = String.Join(Environment.NewLine, | 483 | var parse = String.Join(Environment.NewLine, |