Esempio n. 1
0
 /// <summary>
 /// Ensures that the specified equals to a value in tests.
 /// </summary>
 /// <typeparam name="TValue">The type of the value.</typeparam>
 /// <param name="value">The value.</param>
 /// <param name="compare">The compare.</param>
 /// <returns>same instance for inlining</returns>
 public static IEquatable <TValue> ShouldBeEqualTo <TValue>(this IEquatable <TValue> value, TValue compare)
 {
     Assert.IsTrue(value.EqualsTo(compare), "Value should be equal to '{0}'", compare);
     return(value);
 }