diff --git a/Lip.Tests/PackageManifestTests.cs b/Lip.Tests/PackageManifestTests.cs index cfb334e..31685f3 100644 --- a/Lip.Tests/PackageManifestTests.cs +++ b/Lip.Tests/PackageManifestTests.cs @@ -421,6 +421,6 @@ public void ToBytes_MinimumJson_Passes() "tooth": "", "version": "1.0.0" } - """, json); + """.ReplaceLineEndings(), json.ReplaceLineEndings()); } } diff --git a/Lip.Tests/RuntimeConfigurationTests.cs b/Lip.Tests/RuntimeConfigurationTests.cs index abbc7e2..90a7790 100644 --- a/Lip.Tests/RuntimeConfigurationTests.cs +++ b/Lip.Tests/RuntimeConfigurationTests.cs @@ -70,7 +70,7 @@ public void ToBytes_MinimumJson_Passes() { var runtimeConfiguration = new RuntimeConfiguration(); - string expected = $$""" + Assert.Equal($$""" { "cache": "{{(OperatingSystem.IsWindows() ? Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "lip-cache").Replace("\\", "\\\\") : Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".cache", "lip"))}}", "color": true, @@ -82,8 +82,6 @@ public void ToBytes_MinimumJson_Passes() "proxy": "", "script_shell": "{{(OperatingSystem.IsWindows() ? "cmd.exe" : "/bin/sh")}}" } - """; - - Assert.Equal(expected, Encoding.UTF8.GetString(runtimeConfiguration.ToBytes())); + """.ReplaceLineEndings(), Encoding.UTF8.GetString(runtimeConfiguration.ToBytes()).ReplaceLineEndings()); } }