private IsSortableTest ( string source, bool hasSurrogate, bool expected ) : void | ||
source | string | |
hasSurrogate | bool | |
expected | bool | |
return | void |
public void IsSortableTest(string source, bool hasSurrogate, bool expected)
{
Assert.Equal(expected, CompareInfo.IsSortable(source));
bool charExpectedResults = hasSurrogate ? false : expected;
foreach (char c in source)
Assert.Equal(charExpectedResults, CompareInfo.IsSortable(c));
}