Catel.Test.ArgumentFacts.TheIsValidMethod.ThrowsArgumentExceptionForNotValidFunc C# (CSharp) Method

ThrowsArgumentExceptionForNotValidFunc() private method

private ThrowsArgumentExceptionForNotValidFunc ( ) : void
return 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));
            }