diff options
| author | Bob Arnson <bob@firegiant.com> | 2020-09-06 21:14:12 -0400 |
|---|---|---|
| committer | Bob Arnson <bob@firegiant.com> | 2020-09-06 21:16:10 -0400 |
| commit | 04e2665cf230390c458edcc91ad0bac4b43e9195 (patch) | |
| tree | c09d272fc0f59d5db23e3934283ba4475b8c37cf /src/test | |
| parent | 941c7cae67823ed7da82d5f6f43233b7364eefc9 (diff) | |
| download | wix-04e2665cf230390c458edcc91ad0bac4b43e9195.tar.gz wix-04e2665cf230390c458edcc91ad0bac4b43e9195.tar.bz2 wix-04e2665cf230390c458edcc91ad0bac4b43e9195.zip | |
Replace BinaryKey with BinaryRef and FileKey with FileRef.
Diffstat (limited to 'src/test')
4 files changed, 9 insertions, 9 deletions
diff --git a/src/test/WixToolsetTest.Converters/ConverterIntegrationFixture.cs b/src/test/WixToolsetTest.Converters/ConverterIntegrationFixture.cs index 79cc3f69..09387590 100644 --- a/src/test/WixToolsetTest.Converters/ConverterIntegrationFixture.cs +++ b/src/test/WixToolsetTest.Converters/ConverterIntegrationFixture.cs | |||
| @@ -108,7 +108,7 @@ namespace WixToolsetTest.Converters | |||
| 108 | File.Copy(Path.Combine(folder, beforeFileName), Path.Combine(baseFolder, beforeFileName)); | 108 | File.Copy(Path.Combine(folder, beforeFileName), Path.Combine(baseFolder, beforeFileName)); |
| 109 | 109 | ||
| 110 | var result = RunConversion(targetFile); | 110 | var result = RunConversion(targetFile); |
| 111 | Assert.Equal(10, result.ExitCode); | 111 | Assert.Equal(11, result.ExitCode); |
| 112 | 112 | ||
| 113 | var expected = File.ReadAllText(Path.Combine(folder, afterFileName)).Replace("\r\n", "\n"); | 113 | var expected = File.ReadAllText(Path.Combine(folder, afterFileName)).Replace("\r\n", "\n"); |
| 114 | var actual = File.ReadAllText(targetFile).Replace("\r\n", "\n"); | 114 | var actual = File.ReadAllText(targetFile).Replace("\r\n", "\n"); |
| @@ -133,7 +133,7 @@ namespace WixToolsetTest.Converters | |||
| 133 | 133 | ||
| 134 | var result = RunConversion(targetFile); | 134 | var result = RunConversion(targetFile); |
| 135 | 135 | ||
| 136 | Assert.Equal(10, result.ExitCode); | 136 | Assert.Equal(11, result.ExitCode); |
| 137 | Assert.Single(result.Messages.Where(message => message.ToString().EndsWith("(QtExecCmdTimeoutAmbiguous)"))); | 137 | Assert.Single(result.Messages.Where(message => message.ToString().EndsWith("(QtExecCmdTimeoutAmbiguous)"))); |
| 138 | 138 | ||
| 139 | var expected = File.ReadAllText(Path.Combine(folder, afterFileName)).Replace("\r\n", "\n"); | 139 | var expected = File.ReadAllText(Path.Combine(folder, afterFileName)).Replace("\r\n", "\n"); |
diff --git a/src/test/WixToolsetTest.Converters/CustomActionFixture.cs b/src/test/WixToolsetTest.Converters/CustomActionFixture.cs index 4ad7dcfd..eafc171a 100644 --- a/src/test/WixToolsetTest.Converters/CustomActionFixture.cs +++ b/src/test/WixToolsetTest.Converters/CustomActionFixture.cs | |||
| @@ -25,10 +25,10 @@ namespace WixToolsetTest.Converters | |||
| 25 | 25 | ||
| 26 | var expected = String.Join(Environment.NewLine, | 26 | var expected = String.Join(Environment.NewLine, |
| 27 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", | 27 | "<Wix xmlns=\"http://wixtoolset.org/schemas/v4/wxs\">", |
| 28 | " <CustomAction Id=\"Foo\" BinaryKey=\"Wix4UtilCA_X86\" DllEntry=\"WixQuietExec\" />", | 28 | " <CustomAction Id=\"Foo\" DllEntry=\"WixQuietExec\" BinaryRef=\"Wix4UtilCA_X86\" />", |
| 29 | " <CustomAction Id=\"Foo\" BinaryKey=\"Wix4UtilCA_X64\" DllEntry=\"WixQuietExec64\" />", | 29 | " <CustomAction Id=\"Foo\" DllEntry=\"WixQuietExec64\" BinaryRef=\"Wix4UtilCA_X64\" />", |
| 30 | " <CustomAction Id=\"Foo\" BinaryKey=\"Wix4UtilCA_X86\" DllEntry=\"WixQuietExec\" />", | 30 | " <CustomAction Id=\"Foo\" DllEntry=\"WixQuietExec\" BinaryRef=\"Wix4UtilCA_X86\" />", |
| 31 | " <CustomAction Id=\"Foo\" BinaryKey=\"Wix4UtilCA_X64\" DllEntry=\"WixQuietExec64\" />", | 31 | " <CustomAction Id=\"Foo\" DllEntry=\"WixQuietExec64\" BinaryRef=\"Wix4UtilCA_X64\" />", |
| 32 | "</Wix>"); | 32 | "</Wix>"); |
| 33 | 33 | ||
| 34 | var document = XDocument.Parse(parse, LoadOptions.PreserveWhitespace | LoadOptions.SetLineInfo); | 34 | var document = XDocument.Parse(parse, LoadOptions.PreserveWhitespace | LoadOptions.SetLineInfo); |
| @@ -40,7 +40,7 @@ namespace WixToolsetTest.Converters | |||
| 40 | 40 | ||
| 41 | var actual = UnformattedDocumentString(document); | 41 | var actual = UnformattedDocumentString(document); |
| 42 | 42 | ||
| 43 | Assert.Equal(7, errors); | 43 | Assert.Equal(11, errors); |
| 44 | Assert.Equal(expected, actual); | 44 | Assert.Equal(expected, actual); |
| 45 | } | 45 | } |
| 46 | 46 | ||
diff --git a/src/test/WixToolsetTest.Converters/TestData/QtExec.bad/v4_expected.wxs b/src/test/WixToolsetTest.Converters/TestData/QtExec.bad/v4_expected.wxs index 02a06cff..0266e177 100644 --- a/src/test/WixToolsetTest.Converters/TestData/QtExec.bad/v4_expected.wxs +++ b/src/test/WixToolsetTest.Converters/TestData/QtExec.bad/v4_expected.wxs | |||
| @@ -15,7 +15,7 @@ | |||
| 15 | 15 | ||
| 16 | <Property Id="QtExecCmdTimeout" Value="600000" /> | 16 | <Property Id="QtExecCmdTimeout" Value="600000" /> |
| 17 | <CustomAction Id="InstallVSTemplateCommand" Property="WixQuietExecCmdLine" Value=""[VSENVPRODUCT80]\devenv.exe" /setup" /> | 17 | <CustomAction Id="InstallVSTemplateCommand" Property="WixQuietExecCmdLine" Value=""[VSENVPRODUCT80]\devenv.exe" /setup" /> |
| 18 | <CustomAction Id="InstallVSTemplate" BinaryKey="Wix4UtilCA_X86" DllEntry="WixQuietExec" Return="asyncWait" /> | 18 | <CustomAction Id="InstallVSTemplate" DllEntry="WixQuietExec" Return="asyncWait" BinaryRef="Wix4UtilCA_X86" /> |
| 19 | 19 | ||
| 20 | <Feature Id="Feature_WiX" Title="WiX Toolset" Level="1"> | 20 | <Feature Id="Feature_WiX" Title="WiX Toolset" Level="1"> |
| 21 | <Component Id="Licensing" Directory="INSTALLFOLDER"> | 21 | <Component Id="Licensing" Directory="INSTALLFOLDER"> |
diff --git a/src/test/WixToolsetTest.Converters/TestData/QtExec/v4_expected.wxs b/src/test/WixToolsetTest.Converters/TestData/QtExec/v4_expected.wxs index 00ce8461..da4f5135 100644 --- a/src/test/WixToolsetTest.Converters/TestData/QtExec/v4_expected.wxs +++ b/src/test/WixToolsetTest.Converters/TestData/QtExec/v4_expected.wxs | |||
| @@ -14,7 +14,7 @@ | |||
| 14 | <MediaTemplate CabinetTemplate="core{0}.cab" /> | 14 | <MediaTemplate CabinetTemplate="core{0}.cab" /> |
| 15 | 15 | ||
| 16 | <CustomAction Id="InstallVSTemplateCommand" Property="WixQuietExecCmdLine" Value=""[VSENVPRODUCT80]\devenv.exe" /setup" /> | 16 | <CustomAction Id="InstallVSTemplateCommand" Property="WixQuietExecCmdLine" Value=""[VSENVPRODUCT80]\devenv.exe" /setup" /> |
| 17 | <CustomAction Id="InstallVSTemplate" BinaryKey="Wix4UtilCA_X86" DllEntry="WixQuietExec" Return="asyncWait" /> | 17 | <CustomAction Id="InstallVSTemplate" DllEntry="WixQuietExec" Return="asyncWait" BinaryRef="Wix4UtilCA_X86" /> |
| 18 | 18 | ||
| 19 | <Feature Id="Feature_WiX" Title="WiX Toolset" Level="1"> | 19 | <Feature Id="Feature_WiX" Title="WiX Toolset" Level="1"> |
| 20 | <Component Id="Licensing" Directory="INSTALLFOLDER"> | 20 | <Component Id="Licensing" Directory="INSTALLFOLDER"> |
