Bytes2you.Validation.UnitTests.ValidationPredicates.StringPredicates.StringRegexMatchValidationPredicateTests.Match_Should.ThrowArgumentNullException_WhenValueArgumentIsNull C# (CSharp) Method

ThrowArgumentNullException_WhenValueArgumentIsNull() private method

        public void ThrowArgumentNullException_WhenValueArgumentIsNull()
        {
            // Arrange.
            IValidationPredicate<string> validationPredicate = new StringRegexMatchValidationPredicate("abc");

            // Act & Assert.
            Ensure.ArgumentNullExceptionIsThrown(() =>
            {
                validationPredicate.Match(null);
            }, "value");
        }
    }