Пример #1
0
 /// <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);
 }
Пример #2
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);
 }
Пример #3
0
 /// <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);
 }
Пример #4
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);
 }
Пример #5
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);
 }
Пример #6
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);
 }
Пример #7
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);
 }
Пример #8
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);
 }