mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
Move identity check into platform block
Commit migrated from https://github.com/dotnet/corefx/commit/724e21a7a3b920bbf6593c07d735d9e7c0f1f065
This commit is contained in:
1 parent
efc23d6cd1
commit
35298e3916
1 file changed
+2
-2
@@ -508,9 +508,9 @@ namespace Test
|
||||
{
|
||||
Encoding encoding = Encoding.GetEncoding(mapping.Key);
|
||||
Assert.NotNull(encoding);
|
||||
Assert.Equal(encoding, Encoding.GetEncoding(mapping.Value));
|
||||
#if !PLATFORM_UNIX
|
||||
// Currently Unix seems to only have UTF-8 as a default...
|
||||
// Currently Unix returns different results depending on how the encoding is requested.
|
||||
Assert.Equal(encoding, Encoding.GetEncoding(mapping.Value));
|
||||
Assert.Equal(mapping.Value, encoding.WebName);
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user