Appccelerate.EnsureTest.ArgumentNotNegative_MustThrowWithProvidedArgumentValue C# (CSharp) Метод

ArgumentNotNegative_MustThrowWithProvidedArgumentValue() приватный Метод

private ArgumentNotNegative_MustThrowWithProvidedArgumentValue ( ) : void
Результат void
        public void ArgumentNotNegative_MustThrowWithProvidedArgumentValue()
        {
            var ex = Assert.Throws<ArgumentOutOfRangeException>(() => Ensure.ArgumentNotNegative(-1, "argument"));
            ex.ActualValue.Should().Be(-1);
        }
EnsureTest