Пример #1
0
 /// <summary>
 /// Checks that the actual value is not equal to another expected value.
 /// </summary>
 /// <typeparam name="T">
 /// Type of the checked value.
 /// </typeparam>
 /// <param name="check">The fluent check to be extended.</param>
 /// <param name="expected">The expected value.</param>
 /// <returns>
 /// A check link.
 /// </returns>
 /// <exception cref="FluentCheckException">The actual value is equal to the expected value.</exception>
 public static ICheckLink <ICheck <T> > IsNotEqualTo <T>(this ICheck <T> check, object expected)
 {
     return(EqualityHelper.PerformUnequalCheck(check, expected));
 }
Пример #2
0
 /// <summary>
 /// Checks that the actual value is different from another expected value using operator!=.
 /// </summary>
 /// <typeparam name="T">
 /// Type of the checked value.
 /// </typeparam>
 /// <typeparam name="TU">Type of the expected value.</typeparam>
 /// <param name="check">
 /// The fluent check to be extended.
 /// </param>
 /// <param name="expected">
 /// The expected value.
 /// </param>
 /// <returns>
 /// A check link.
 /// </returns>
 /// <exception cref="FluentCheckException">
 /// The actual value is equal to the expected value.
 /// </exception>
 public static ICheckLink <ICheck <T> > HasDifferentValueThan <T, TU>(this ICheck <T> check, TU expected)
 {
     return(EqualityHelper.PerformUnequalCheck(check, expected, true));
 }