Bytes2you.Validation.UnitTests.ValidationPredicates.DoublePredicates.DoubleNotNaNValidationPredicateTests.Match_Should.ReturnTrueAndMatchMessage_WhenArgumentIsNotDoubleNaN C# (CSharp) Method

ReturnTrueAndMatchMessage_WhenArgumentIsNotDoubleNaN() private method

        public void ReturnTrueAndMatchMessage_WhenArgumentIsNotDoubleNaN()
        {
            // Arrange.
            double value = 5;

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

            // Assert.
            Assert.IsTrue(result.IsMatch);
            Assert.AreEqual("Argument value <5> is not NaN.", result.Message);
            
        }