Exemple #1
0
 /// <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);
 }
Exemple #2
0
 /// <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);
 }
Exemple #3
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, Properties.Resources.Assertion_CollectionFailure, collection.Count, 0);
 }
Exemple #4
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);
 }
Exemple #5
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);
 }