private UnpackSByte ( Stream source ) : SByte | ||
source | Stream | |
Résultat | SByte |
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); }