/// <summary> /// Asserts that two strings are equal, without regard to case. /// </summary> /// <param name="expected">The expected string.</param> /// <param name="actual">The actual string.</param> /// <param name="message">A message to display. This message can be seen in the unit test results.</param> public static void AreEqualIgnoringCase(string expected, string actual, string message) { CustomAssert.AreEqualIgnoringCase(expected, actual, message, null); }
/// <summary> /// Asserts that a string is not empty. /// </summary> /// <param name="value">The value to be tested.</param> /// <param name="message">A message to display. This message can be seen in the unit test results.</param> public static void IsNotEmpty(string value, string message) { CustomAssert.IsNotEmpty(value, message, null); }
/// <summary> /// Asserts that two strings are equal, without regard to case. /// </summary> /// <param name="expected">The expected string.</param> /// <param name="actual">The actual string.</param> public static void AreEqualIgnoringCase(string expected, string actual) { CustomAssert.AreEqualIgnoringCase(expected, actual, Properties.Resources.Assertion_GenericFailure, expected, actual); }
/// <summary> /// Asserts that a string is not empty. /// </summary> /// <param name="value">The value to be tested.</param> public static void IsNotEmpty(string value) { CustomAssert.IsNotEmpty(value, Properties.Resources.Assertion_GenericFailure, value, String.Empty); }
/// <summary> /// Assert that an array, list or other collection is not empty. /// </summary> /// <param name="collection">The value to be tested.</param> /// <param name="message">A message to display. This message can be seen in the unit test results.</param> public static void IsNotEmpty(ICollection collection, string message) { CustomAssert.IsNotEmpty(collection, message, null); }
/// <summary> /// Assert that an array, list or other collection is not empty. /// </summary> /// <param name="collection">The value to be tested.</param> public static void IsNotEmpty(ICollection collection) { CustomAssert.IsNotEmpty(collection, Properties.Resources.Assertion_CollectionFailure, collection.Count, 0); }
/// <summary> /// Assert that an array, list or other collection is not empty. /// </summary> /// <param name="collection">The value to be tested.</param> public static void IsNotEmpty(ICollection collection) { CustomAssert.IsNotEmpty(collection, Strings.Assertion_CollectionFailure, collection.Count, 0); }
/// <summary> /// Asserts that a string is empty. /// </summary> /// <param name="value">The value to be tested.</param> public static void IsEmpty(string value) { CustomAssert.IsEmpty(value, Strings.Assertion_GenericFailure, String.Empty, value); }