public void IsNotEqualTo() { CompareAssert.IsNotEqualTo(4, 5); CompareAssert.IsNotEqualTo("B", "A"); CompareAssert.IsNotEqualTo("B", "b", StringComparer.Ordinal, "\"B\" should not be equal to \"b\" for case-sensitive ordinal comparison."); ExceptionAssert.ThrowsAssertFailed( () => CompareAssert.IsNotEqualTo("B", "B"), "\"B\" should not be not equal to \"B\"."); ExceptionAssert.ThrowsAssertFailed( () => CompareAssert.IsNotEqualTo("B", "b", StringComparer.OrdinalIgnoreCase), "\"B\" should not be not equal to \"b\" for case-insensitive ordinal comparison."); CompareAssert.IsNotEqualTo(null, "x"); CompareAssert.IsNotEqualTo("x", null); ExceptionAssert.ThrowsAssertFailed( () => CompareAssert.IsNotEqualTo <string>(null, null), "(null) should not be not equal to (null)."); }