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