System.Globalization.Tests.CompareInfoMiscTests.IsSortableTest C# (CSharp) Метод

IsSortableTest() приватный Метод

private IsSortableTest ( string source, bool hasSurrogate, bool expected ) : void
source string
hasSurrogate bool
expected bool
Результат 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));
        }