diff options
| author | Rob Mensching <rob@firegiant.com> | 2020-06-23 16:43:11 -0700 |
|---|---|---|
| committer | Rob Mensching <rob@firegiant.com> | 2020-06-23 16:56:04 -0700 |
| commit | acba90f005779fa03ee05c3c87148bb6141ba60e (patch) | |
| tree | 97fb00a86df2a92e8346ebd2f4a239df7d2f166d /src/test/WixToolsetTest.Converters/CustomTableFixture.cs | |
| parent | 9c235551b2fb961cf10ecb307c252fd5de377513 (diff) | |
| download | wix-acba90f005779fa03ee05c3c87148bb6141ba60e.tar.gz wix-acba90f005779fa03ee05c3c87148bb6141ba60e.tar.bz2 wix-acba90f005779fa03ee05c3c87148bb6141ba60e.zip | |
Do *not* require XML declaration
Diffstat (limited to 'src/test/WixToolsetTest.Converters/CustomTableFixture.cs')
| -rw-r--r-- | src/test/WixToolsetTest.Converters/CustomTableFixture.cs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/test/WixToolsetTest.Converters/CustomTableFixture.cs b/src/test/WixToolsetTest.Converters/CustomTableFixture.cs index c09534ee..b61dbb10 100644 --- a/src/test/WixToolsetTest.Converters/CustomTableFixture.cs +++ b/src/test/WixToolsetTest.Converters/CustomTableFixture.cs | |||
| @@ -25,7 +25,6 @@ namespace WixToolsetTest.Converters | |||
| 25 | 25 | ||
| 26 | var expected = new[] | 26 | var expected = new[] |
| 27 | { | 27 | { |
| 28 | "<?xml version=\"1.0\" encoding=\"utf-16\"?>", | ||
| 29 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", | 28 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", |
| 30 | " <Fragment>", | 29 | " <Fragment>", |
| 31 | " <CustomTable Id=\"Custom1\">", | 30 | " <CustomTable Id=\"Custom1\">", |
| @@ -64,7 +63,6 @@ namespace WixToolsetTest.Converters | |||
| 64 | 63 | ||
| 65 | var expected = new[] | 64 | var expected = new[] |
| 66 | { | 65 | { |
| 67 | "<?xml version=\"1.0\" encoding=\"utf-16\"?>", | ||
| 68 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", | 66 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", |
| 69 | " <Fragment>", | 67 | " <Fragment>", |
| 70 | " <CustomTable Id=\"Custom1\">", | 68 | " <CustomTable Id=\"Custom1\">", |
| @@ -90,7 +88,6 @@ namespace WixToolsetTest.Converters | |||
| 90 | public void FixCustomRowCdataValue() | 88 | public void FixCustomRowCdataValue() |
| 91 | { | 89 | { |
| 92 | var parse = String.Join(Environment.NewLine, | 90 | var parse = String.Join(Environment.NewLine, |
| 93 | "<?xml version=\"1.0\" encoding=\"utf-16\"?>", | ||
| 94 | "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>", | 91 | "<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>", |
| 95 | " <Fragment>", | 92 | " <Fragment>", |
| 96 | " <CustomTable Id='Custom1'>", | 93 | " <CustomTable Id='Custom1'>", |
| @@ -105,7 +102,6 @@ namespace WixToolsetTest.Converters | |||
| 105 | 102 | ||
| 106 | var expected = new[] | 103 | var expected = new[] |
| 107 | { | 104 | { |
| 108 | "<?xml version=\"1.0\" encoding=\"utf-16\"?>", | ||
| 109 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", | 105 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", |
| 110 | " <Fragment>", | 106 | " <Fragment>", |
| 111 | " <CustomTable Id=\"Custom1\">", | 107 | " <CustomTable Id=\"Custom1\">", |
| @@ -121,7 +117,7 @@ namespace WixToolsetTest.Converters | |||
| 121 | var converter = new Wix3Converter(messaging, 2, null, null); | 117 | var converter = new Wix3Converter(messaging, 2, null, null); |
| 122 | 118 | ||
| 123 | var errors = converter.ConvertDocument(document); | 119 | var errors = converter.ConvertDocument(document); |
| 124 | Assert.Equal(3, errors); | 120 | Assert.Equal(2, errors); |
| 125 | 121 | ||
| 126 | var actualLines = UnformattedDocumentLines(document); | 122 | var actualLines = UnformattedDocumentLines(document); |
| 127 | CompareLineByLine(expected, actualLines); | 123 | CompareLineByLine(expected, actualLines); |
| @@ -142,7 +138,6 @@ namespace WixToolsetTest.Converters | |||
| 142 | 138 | ||
| 143 | var expected = new[] | 139 | var expected = new[] |
| 144 | { | 140 | { |
| 145 | "<?xml version=\"1.0\" encoding=\"utf-16\"?>", | ||
| 146 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", | 141 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", |
| 147 | " <Fragment>", | 142 | " <Fragment>", |
| 148 | " <CustomTable Id=\"Custom1\">", | 143 | " <CustomTable Id=\"Custom1\">", |
| @@ -168,13 +163,11 @@ namespace WixToolsetTest.Converters | |||
| 168 | public void CanConvertCustomTableBootstrapperApplicationData() | 163 | public void CanConvertCustomTableBootstrapperApplicationData() |
| 169 | { | 164 | { |
| 170 | var parse = String.Join(Environment.NewLine, | 165 | var parse = String.Join(Environment.NewLine, |
| 171 | "<?xml version='1.0' encoding='utf-8'?>", | ||
| 172 | "<Wix xmlns='http://wixtoolset.org/schemas/v4/wxs'>", | 166 | "<Wix xmlns='http://wixtoolset.org/schemas/v4/wxs'>", |
| 173 | " <CustomTable Id='FgAppx' BootstrapperApplicationData='yes' />", | 167 | " <CustomTable Id='FgAppx' BootstrapperApplicationData='yes' />", |
| 174 | "</Wix>"); | 168 | "</Wix>"); |
| 175 | 169 | ||
| 176 | var expected = String.Join(Environment.NewLine, | 170 | var expected = String.Join(Environment.NewLine, |
| 177 | "<?xml version=\"1.0\" encoding=\"utf-16\"?>", | ||
| 178 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", | 171 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", |
| 179 | " <CustomTable Id=\"FgAppx\" Unreal=\"yes\" />", | 172 | " <CustomTable Id=\"FgAppx\" Unreal=\"yes\" />", |
| 180 | "</Wix>"); | 173 | "</Wix>"); |
