public void ReturnTwoNumbers_GivenBytesForTwoNumbers()
        {
            var valueReader = new DhcpBinaryValue(TestBytes, 0, 8);

            var numberList = valueReader.AsUnsignedInt16List();

            Assert.Equal(17U, numberList[0]);
            Assert.Equal(8755U, numberList[1]);
        }
        public void ThrowInvalidOperationException_GivenInvalidLength(byte length)
        {
            var bytes = new byte[10];

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

            Assert.Throws <InvalidOperationException>(
                () => valueReader.AsUnsignedInt16List());
        }
        public void ReadValueFromGivenOffset()
        {
            var valueReader = new DhcpBinaryValue(TestBytes, 2, 2);

            Assert.Equal(8755U, valueReader.AsUnsignedInt16List().Single());
        }
        public void ReturnSingleNumber_GivenBytesForOneNumber()
        {
            var valueReader = new DhcpBinaryValue(TestBytes, 0, 2);

            Assert.Equal(17U, valueReader.AsUnsignedInt16List().Single());
        }