public void ThrowInvalidOperationException_GivenInvalidLength(byte length)
        {
            var bytes = new byte[10];

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

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

            Assert.Equal(8755, valueReader.AsUnsignedInt16());
        }
        public void ReturnValue_GivenValidLength()
        {
            var valueReader = new DhcpBinaryValue(TestBytes, 0, 2);

            Assert.Equal(17, valueReader.AsUnsignedInt16());
        }