Esempio n. 1
0
 /// <summary>
 /// Verifies that the first value is less than or equal to the second value.
 /// </summary>
 /// <typeparam name="T">The type of the values to compare.</typeparam>
 /// <param name="arg1">The first value, expected to be less.</param>
 /// <param name="arg2">The second value, expected to be greater.</param>
 /// <param name="message">A message to display. This message can be seen in the unit test results.</param>
 public static void LessOrEqual <T>(T arg1, T arg2, string message) where T : IComparable
 {
     ConditionAssert.LessOrEqual(arg1, arg2, message, null);
 }
Esempio n. 2
0
 /// <summary>
 /// Verifies that the first value is less than or equal to the second value.
 /// </summary>
 /// <typeparam name="T">The type of the values to compare.</typeparam>
 /// <param name="arg1">The first value, expected to be less.</param>
 /// <param name="arg2">The second value, expected to be greater.</param>
 public static void LessOrEqual <T>(T arg1, T arg2) where T : IComparable
 {
     ConditionAssert.LessOrEqual(arg1, arg2, Strings.Assertion_IsComparison, arg2, "greater", arg1);
 }