Exemple #1
0
        public void IsGreaterDoubleThanShouldNotRaiseExceptionIfGreaterThan()
        {
            var foo    = 5;
            var result = AssertArg.IsGreaterThan(1, foo, nameof(foo));

            Assert.AreEqual(foo, result);
        }
Exemple #2
0
 public void IsGreaterIntThanShouldRaiseExceptionIfEqual()
 {
     AssertArg.IsGreaterThan(1, 1, "None");
 }
Exemple #3
0
 public void IsGreaterDoubleThanShouldRaiseExceptionIfEqual()
 {
     AssertArg.IsGreaterThan(1.0, 1.0, "None");
 }
Exemple #4
0
 public void IsGreaterIntThanShouldRaiseExceptionIfLessThan()
 {
     AssertArg.IsGreaterThan(1, 0, "None");
 }