Exemplo n.º 1
0
        public void ReturnTrue_GivenValidLength()
        {
            var bytes = new byte[8];

            var binaryValue = new DhcpBinaryValue(bytes, 0, 8);

            Assert.True(binaryValue.IsValidIpAddressPairList());
        }
Exemplo n.º 2
0
        public void ReturnFalse_GivenInvalidLength(int length)
        {
            var bytes = new byte[length];

            var binaryValue = new DhcpBinaryValue(bytes, 0, length);

            Assert.False(binaryValue.IsValidIpAddressPairList());
        }