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

ThrowsArgumentNullExceptionifValidatorIsNull() private method

private ThrowsArgumentNullExceptionifValidatorIsNull ( ) : void
return void
            public void ThrowsArgumentNullExceptionifValidatorIsNull()
            {
                ExceptionTester.CallMethodAndExpectException<ArgumentException>(() => Argument.IsValid("myParam", "value", (IValueValidator<string>)null));
                ExceptionTester.CallMethodAndExpectException<ArgumentException>(() => Argument.IsValid("myParam", (string)null, (IValueValidator<string>)null));
            }