add IsPrefix test cases for Platforms differences (dotnet/corefx#41017)
authorAdam Sitnik <adam.sitnik@gmail.com>
Wed, 11 Sep 2019 19:56:55 +0000 (21:56 +0200)
committerGitHub <noreply@github.com>
Wed, 11 Sep 2019 19:56:55 +0000 (21:56 +0200)
Commit migrated from https://github.com/dotnet/corefx/commit/728aceca7464e964719fc99ef585e63cbb95f44d

src/libraries/System.Globalization/tests/CompareInfo/CompareInfoTests.IsPrefix.cs

index d3c5e10..2585e7f 100644 (file)
@@ -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<object[]> 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]