Move identity check into platform block

Commit migrated from https://github.com/dotnet/corefx/commit/724e21a7a3b920bbf6593c07d735d9e7c0f1f065
This commit is contained in:
Clockwork-Muse committed 2015-06-08 19:56:52 +09:00
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
}