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));
            }