コード例 #1
0
        public void StringComparerEx_DifferentStringAreDifferent()
        {
            string a = "acoutur", b = "ëcöutêr";
            var    stringComparer = new StringComparerEx(CultureInfo.InvariantCulture, CompareOptions.IgnoreCase | CompareOptions.IgnoreNonSpace);
            bool   result         = stringComparer.Equals(a, b);

            Assert.IsFalse(result);
        }
コード例 #2
0
        public void StringComparerEx_AccentedStringAreEqual3()
        {
            string a = "écoûtèr", b = "ecouter";
            var    stringComparer = new StringComparerEx(CultureInfo.InvariantCulture, CompareOptions.IgnoreCase | CompareOptions.IgnoreNonSpace);
            bool   result         = stringComparer.Equals(a, b);

            Assert.IsTrue(result);
        }