public void TestInt64() { var rnd = new System.Random(); for (var c = 0; c < count; c++) { var mem = new byte[sizeof(Int64) * writeRepeatCount]; var span1 = new MemoryStreamer(mem); var span2 = new MemoryStreamer(mem); var a = new Int64[writeRepeatCount]; for (var i = 0; i < writeRepeatCount; i++) { var n = rnd.NextInt64(); a[i] = n; span1.Write(n); } for (var i = 0; i < writeRepeatCount; i++) { var r = span2.ReadInt64(); Assert.Equal(a[i], r); } } }