コード例 #1
0
        public void AssertLessThanOnGreaterOrEqualShortThrowsArgumentOutOfRangeException(short sut, short value)
        {
            var ex = Assert.Throws <ArgumentOutOfRangeException>(() => sut.AssertLessThan(value, "sut"));

            Assert.Equal("sut", ex.ParamName);
            Assert.Equal(sut, ex.ActualValue);
            Assert.NotNull(ex.Message);
        }
コード例 #2
0
        public void AssertLessThanOnLesserShortDoesNotThrowException()
        {
            short sut = 0;

            sut.AssertLessThan(1, "sut");
        }