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