Catel.Test.ArgumentFacts.TheIsValidMethod.ThrowsArgumentNullExceptionIfFuncIsNull C# (CSharp) Метод

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

private ThrowsArgumentNullExceptionIfFuncIsNull ( ) : void
Результат void
            public void ThrowsArgumentNullExceptionIfFuncIsNull()
            {
                ExceptionTester.CallMethodAndExpectException<ArgumentException>(() => Argument.IsValid("myParam", "value", (Func<string, bool>)null));
                ExceptionTester.CallMethodAndExpectException<ArgumentException>(() => Argument.IsValid("myParam", (string)null, (Func<string, bool>)null));
            }