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