示例#1
0
 /// <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);
 }
示例#2
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, Properties.Resources.Assertion_GenericFailure, String.Empty, value);
 }
示例#3
0
 /// <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);
 }
示例#4
0
 /// <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);
 }
示例#5
0
 /// <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);
 }