public void WriteAndReadLongViaMemoryFile() { var file = new MemoryFile("rwb"); Assert.NotNull(file); Assert.True(file.CanWrite); file.WriteLong(13); file.WriteLong(17); file.Seek(0); var rd = file.ReadLong(); Assert.Equal(13, rd); rd = file.ReadLong(); Assert.Equal(17, rd); file.Close(); Assert.False(file.IsOpen); }