From: Adam Sitnik Date: Wed, 11 Sep 2019 19:56:55 +0000 (+0200) Subject: add IsPrefix test cases for Platforms differences (dotnet/corefx#41017) X-Git-Tag: submit/tizen/20210909.063632~11031^2~480 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=098e241ceaca5e3bfc47e023f76fdd94cd76440e;p=platform%2Fupstream%2Fdotnet%2Fruntime.git add IsPrefix test cases for Platforms differences (dotnet/corefx#41017) Commit migrated from https://github.com/dotnet/corefx/commit/728aceca7464e964719fc99ef585e63cbb95f44d --- diff --git a/src/libraries/System.Globalization/tests/CompareInfo/CompareInfoTests.IsPrefix.cs b/src/libraries/System.Globalization/tests/CompareInfo/CompareInfoTests.IsPrefix.cs index d3c5e10..2585e7f 100644 --- a/src/libraries/System.Globalization/tests/CompareInfo/CompareInfoTests.IsPrefix.cs +++ b/src/libraries/System.Globalization/tests/CompareInfo/CompareInfoTests.IsPrefix.cs @@ -12,6 +12,7 @@ namespace System.Globalization.Tests private static CompareInfo s_invariantCompare = CultureInfo.InvariantCulture.CompareInfo; private static CompareInfo s_hungarianCompare = new CultureInfo("hu-HU").CompareInfo; private static CompareInfo s_turkishCompare = new CultureInfo("tr-TR").CompareInfo; + private static CompareInfo s_frenchCompare = new CultureInfo("fr-FR").CompareInfo; public static IEnumerable IsPrefix_TestData() { @@ -55,6 +56,8 @@ namespace System.Globalization.Tests // Platform differences yield return new object[] { s_hungarianCompare, "dzsdzsfoobar", "ddzsf", CompareOptions.None, PlatformDetection.IsWindows ? true : false }; + yield return new object[] { s_invariantCompare, "''Tests", "Tests", CompareOptions.IgnoreSymbols, PlatformDetection.IsWindows ? true : false }; + yield return new object[] { s_frenchCompare, "\u0153", "oe", CompareOptions.None, PlatformDetection.IsWindows ? true : false }; } [Theory]