Esempio n. 1
0
        public void ValidateIpAddress_GivenIpAddressWithMoreThanFourOctets_ShouldReturnFalse(string ipAddress)
        {
            //Arrange
            var sut = new IpAddressValidator();

            //Act
            var actual = sut.ValidateIpAddress(ipAddress);

            //Assert
            Assert.That(actual, Is.False);
        }
Esempio n. 2
0
        public void ValidateIpAddress_GivenIpAddressRepresentingBroadCastNetwork_ShouldReturnFalse(string ipAddress)
        {
            //Arrange
            var sut = new IpAddressValidator();

            //Act
            var actual = sut.ValidateIpAddress(ipAddress);

            //Assert
            Assert.That(actual, Is.False);
        }
Esempio n. 3
0
        public void ValidateIpAddress_GivenIpAddressWithEmptyOrNullOrWhiteSpace_ShouldReturnFalse(string ipAddress)
        {
            //Arrange
            var sut = new IpAddressValidator();

            //Act
            var actual = sut.ValidateIpAddress(ipAddress);

            //Assert
            Assert.That(actual, Is.False);
        }