Bytes2you.Validation.UnitTests.ValidationPredicates.FloatPredicates.FloatNotInfinityValidationPredicateTests.Match_Should.ReturnTrueAndMatchMessage_WhenArgumentIsNotInfinity C# (CSharp) Method

ReturnTrueAndMatchMessage_WhenArgumentIsNotInfinity() private method

        public void ReturnTrueAndMatchMessage_WhenArgumentIsNotInfinity()
        {
            // Arrange.
            float value = 5;

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

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