Bytes2you.Validation.UnitTests.ValidationPredicates.DoublePredicates.DoubleNotInfinityValidationPredicateTests.Match_Should.ReturnFalseAndUnmatchMessage_WhenArgumentIsDoubleNegativeInfinity C# (CSharp) Method

ReturnFalseAndUnmatchMessage_WhenArgumentIsDoubleNegativeInfinity() private method

        public void ReturnFalseAndUnmatchMessage_WhenArgumentIsDoubleNegativeInfinity()
        {
            // Arrange.
            double value = double.NegativeInfinity;

            // Act.
            IValidationPredicateResult result = DoubleNotInfinityValidationPredicate.Instance.Match(value);

            // Assert.
            Assert.IsFalse(result.IsMatch);
            Assert.AreEqual("The argument is infinity.", result.Message);
        }
    }