/// <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 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> 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> /// <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, Strings.Assertion_CollectionFailure, collection.Count, 0); }