Exemple #1
0
        public void ValidateIpV4Address_GivenValidIpAddressThatCanHostAndCannotHost_ShouldReturnFalse(string input, bool expected)
        {
            //Arrange
            var sut = new IpAddressValidator();

            //Act
            var actual = sut.ValidateIpV4Address(input);

            //Assert
            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void ValidateIpV4Address_GivenInvalidIpAddress_ShouldReturnFalse(string input)
        {
            //Arrange
            var sut = new IpAddressValidator();

            //Act
            var actual = sut.ValidateIpV4Address(input);

            //Assert
            var expected = false;

            Assert.AreEqual(expected, actual);
        }