public void ThrowsArgumentExceptionForValueThatMatchWithThePattern() { ExceptionTester.CallMethodAndExpectException<ArgumentException>(() => Argument.IsMatch("myParam", "\n", ".+")); }