public static DateTime Equal(this IShould<DateTime> should, DateTime expected, DatePrecision precision) { return should.Apply( (t, a) => a.AreEqual(expected, t, precision), (t, a) => a.AreNotEqual(expected, t, precision) ); }
/// <summary> /// Verifies that two values are not equal within a given tolerance. /// </summary> /// <param name="actual">The value to be compared against</param> /// <param name="expected">The expected value</param> /// <param name="precision">The level of precision to use when making the comparison</param> /// <exception cref="EqualException">Thrown when the objects are equal</exception> public static void ShouldNotEqual(this DateTime actual, DateTime expected, DatePrecision precision) { Assert.NotEqual(expected, actual, precision); }