Example #1
0
        public void AssertGreaterThanOrEqualToOnLesserShortThrowsArgumentOutOfRangeException()
        {
            short sut = 0;

            var ex = Assert.Throws <ArgumentOutOfRangeException>(() => sut.AssertGreaterThanOrEqualTo(1, "sut"));

            Assert.Equal("sut", ex.ParamName);
            Assert.Equal(sut, ex.ActualValue);
            Assert.NotNull(ex.Message);
        }
Example #2
0
 public void AssertGreaterThanOrEqualToOnGreaterOrEqualShortDoesNotThrowException(short sut, short value)
 {
     sut.AssertGreaterThanOrEqualTo(value, "sut");
 }