Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 728acec

Browse files
authored
add IsPrefix test cases for Platforms differences (#41017)
1 parent 9eed672 commit 728acec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ public class CompareInfoIsPrefixTests
1212
private static CompareInfo s_invariantCompare = CultureInfo.InvariantCulture.CompareInfo;
1313
private static CompareInfo s_hungarianCompare = new CultureInfo("hu-HU").CompareInfo;
1414
private static CompareInfo s_turkishCompare = new CultureInfo("tr-TR").CompareInfo;
15+
private static CompareInfo s_frenchCompare = new CultureInfo("fr-FR").CompareInfo;
1516

1617
public static IEnumerable<object[]> IsPrefix_TestData()
1718
{
@@ -55,6 +56,8 @@ public static IEnumerable<object[]> IsPrefix_TestData()
5556

5657
// Platform differences
5758
yield return new object[] { s_hungarianCompare, "dzsdzsfoobar", "ddzsf", CompareOptions.None, PlatformDetection.IsWindows ? true : false };
59+
yield return new object[] { s_invariantCompare, "''Tests", "Tests", CompareOptions.IgnoreSymbols, PlatformDetection.IsWindows ? true : false };
60+
yield return new object[] { s_frenchCompare, "\u0153", "oe", CompareOptions.None, PlatformDetection.IsWindows ? true : false };
5861
}
5962

6063
[Theory]

0 commit comments

Comments
 (0)