UnpackSByte() private method

private UnpackSByte ( Stream source ) : SByte
source Stream
return SByte
Exemplo n.º 1
0
        private static void TestSByte(SByte value)
        {
            var output = new MemoryStream();

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