public void WriteAndReadLongViaMemoryFile() { var file = new Torch.IO.MemoryFile("rwb"); Assert.IsNotNull(file); Assert.IsTrue(file.CanWrite); file.WriteLong(13); file.WriteLong(17); file.Seek(0); var rd = file.ReadLong(); Assert.AreEqual(13, rd); rd = file.ReadLong(); Assert.AreEqual(17, rd); file.Close(); Assert.IsFalse(file.IsOpen); }