Exemple #1
0
        public void IsLessThanDoubleShouldNotRaiseExceptionIfLessThan()
        {
            var foo    = 5.0;
            var result = AssertArg.IsLessThan(6.0, foo, nameof(foo));

            Assert.AreEqual(foo, result);
        }
Exemple #2
0
 public void IsLessThanOrEqualDoubleShouldRaiseExceptionIfNotLessThan()
 {
     AssertArg.IsLessThan(0.0, 1.0, "None");
 }
Exemple #3
0
 public void IsLessThanOrEqualIntShouldRaiseExceptionIfNotLessThan()
 {
     AssertArg.IsLessThan(0, 1, "None");
 }
Exemple #4
0
 public void IsLessThanDoubleShouldRaiseExceptionIfEqual()
 {
     AssertArg.IsLessThan(1.0, 1.0, "None");
 }
Exemple #5
0
 public void IsLessThanIntShouldRaiseExceptionIfEqual()
 {
     AssertArg.IsLessThan(1, 1, "None");
 }