public static void TestGetHashCode_ReturnsHashCodes_NotEqual(string strA, string strB) { SimpleCaseFoldingStringComparer sc = new SimpleCaseFoldingStringComparer(); Assert.NotEqual(sc.GetHashCode(strA), sc.GetHashCode(strB)); Assert.NotEqual(sc.GetHashCode((object)strA), sc.GetHashCode((object)strB)); }
public static void TestOrdinal_EmbeddedNull_ReturnsDifferentHashCodes() { SimpleCaseFoldingStringComparer sc = new SimpleCaseFoldingStringComparer(); Assert.NotEqual(sc.GetHashCode("\0AAAAAAAAA"), sc.GetHashCode("\0BBBBBBBBBBBB")); }