Bytes2you.Validation.UnitTests.FluentExtensions.FloatArgumentFluentExtensionsTests.IsInfinity_Should.AddFloatInfinityValidationPredicate C# (CSharp) Method

AddFloatInfinityValidationPredicate() private method

private AddFloatInfinityValidationPredicate ( ) : void
return void
        public void AddFloatInfinityValidationPredicate()
        {
            // Arrange.
            ValidatableArgument<float> argument =
                new ValidatableArgument<float>("argument", 5);

            // Act.
            argument.IsInfinity();

            // Assert.
            Assert.AreEqual(1, argument.ValidationPredicates.Count());
            Assert.IsInstanceOfType(argument.ValidationPredicates.First(), typeof(FloatInfinityValidationPredicate));
        }