public void ReadInt64Test() { const long Value = 0x1234567890123456; const long Expected = 0x1234567890123456; StreamBuffer target = new StreamBuffer(BitConverter.GetBytes(Value)) { Position = 0 }; long actual = target.ReadInt64(); Assert.AreEqual(Expected, actual); }