コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 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);
        }
コード例 #5
0
 public static void ShouldBe(this decimal actual, decimal expected, decimal tolerance)
 {
     actual.AssertAwesomely(Is.EqualTo(expected).Within(tolerance), actual, expected);
 }
コード例 #6
0
 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);
 }