/// <summary> /// Asserts that a string is 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 IsEmpty(string value, string message) { CustomAssert.IsEmpty(value, message, null); }
/// <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, Properties.Resources.Assertion_GenericFailure, String.Empty, value); }
/// <summary> /// Assert that an array, list or other collection is empty. /// </summary> /// <param name="collection">The value to be tested.</param> public static void IsEmpty(ICollection collection) { CustomAssert.IsEmpty(collection, Properties.Resources.Assertion_CollectionFailure, 0, collection.Count); }
/// <summary> /// Assert that an array, list or other collection is 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 IsEmpty(ICollection collection, string message) { CustomAssert.IsEmpty(collection, message, null); }
/// <summary> /// Assert that an array, list or other collection is empty. /// </summary> /// <param name="collection">The value to be tested.</param> public static void IsEmpty(ICollection collection) { CustomAssert.IsEmpty(collection, Strings.Assertion_CollectionFailure, 0, collection.Count); }