Catel.Test.ArgumentFacts.TheIsValidMethod.ThrowsArgumentExceptionForNotValidFunc C# (CSharp) 메소드

ThrowsArgumentExceptionForNotValidFunc() 개인적인 메소드

private ThrowsArgumentExceptionForNotValidFunc ( ) : void
리턴 void
            public void ThrowsArgumentExceptionForNotValidFunc()
            {
                ExceptionTester.CallMethodAndExpectException<ArgumentException>(() => Argument.IsValid("myParam", "value", () => false));
                ExceptionTester.CallMethodAndExpectException<ArgumentException>(() => Argument.IsValid("myParam", "value", s => s.Length > 10));
                ExceptionTester.CallMethodAndExpectException<ArgumentException>(() => Argument.IsValid("myParam", (string)null, s => s != null));
            }