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); }
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); }