UnpackUInt16() private method

private UnpackUInt16 ( Stream source ) : UInt16
source Stream
return System.UInt16
Exemplo n.º 1
0
        private static void TestUInt16(UInt16 value)
        {
            var output = new MemoryStream();

            Packer.Create(output).Pack(value);
            Assert.AreEqual(value, Unpacking.UnpackUInt16(new MemoryStream(output.ToArray())));
            Assert.AreEqual(value, Unpacking.UnpackUInt16(output.ToArray()).Value);
        }