Ejemplo 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);
        }
Ejemplo 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);
        }
Ejemplo 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);
        }