Bytes2you.Validation.UnitTests.ValidationPredicates.DoublePredicates.DoubleInfinityValidationPredicateTests.Match_Should.ReturnTrueAndMatchMessage_WhenArgumentIsDoubleNegativeInfinity C# (CSharp) Method

ReturnTrueAndMatchMessage_WhenArgumentIsDoubleNegativeInfinity() private method

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

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

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