UnpackUInt32() private method

private UnpackUInt32 ( Stream source ) : UInt32
source Stream
return System.UInt32
コード例 #1
0
        private static void TestUInt32(UInt32 value)
        {
            var output = new MemoryStream();

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