public static void ShouldBe(this decimal actual, decimal expected, decimal tolerance, string?customMessage = null) { actual.AssertAwesomely(v => Is.Equal(v, expected, tolerance), actual, expected, tolerance, customMessage); }
public static void ShouldBeNegative(this decimal actual, [InstantHandle] Func <string> customMessage) { var expected = default(decimal); actual.AssertAwesomely(v => Is.LessThan(v, expected), actual, expected, customMessage); }
public static void ShouldBe(this decimal actual, decimal expected, decimal tolerance) { actual.AssertAwesomely(v => Is.Equal(v, expected, tolerance), actual, expected, tolerance); }
/// <summary> /// decimal /// </summary> public static void ShouldBePositive(this decimal actual, string?customMessage = null) { var expected = default(decimal); actual.AssertAwesomely(v => Is.GreaterThan(v, expected), actual, expected, customMessage); }
public static void ShouldBe(this decimal actual, decimal expected, decimal tolerance) { actual.AssertAwesomely(Is.EqualTo(expected).Within(tolerance), actual, expected); }
public static void ShouldBe(this decimal actual, decimal expected, decimal tolerance, [InstantHandle] Func <string?>?customMessage) { actual.AssertAwesomely(v => Is.Equal(v, expected, tolerance), actual, expected, tolerance, customMessage); }