Completely disable DefaultEncodings test for Unix (conditional compilation not available?)

Commit migrated from https://github.com/dotnet/corefx/commit/6bc037ae3907f5f9f794460b91f01a736a0b8102
This commit is contained in:
Clockwork-Muse committed 2015-06-08 21:56:29 +09:00
1 parent 35298e3916
commit 80b79cc2b4
1 file changed
+1 -5
@@ -453,8 +453,7 @@ namespace Test
}
[Fact]
// Specific asserts which would fail on Unix are conditionally not run.
// [ActiveIssue(846, PlatformID.AnyUnix)]
[ActiveIssue(846, PlatformID.AnyUnix)]
public static void TestDefaultEncodings()
{
ValidateDefaultEncodings();
@@ -508,11 +507,8 @@ namespace Test
{
Encoding encoding = Encoding.GetEncoding(mapping.Key);
Assert.NotNull(encoding);
#if !PLATFORM_UNIX
// 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
}
}