public void WriteAndReadIntViaDiskFile() { var file = new DiskFile("test8.dat", "rwb"); Assert.NotNull(file); Assert.True(file.CanWrite); file.WriteInt(13); file.WriteInt(17); file.Seek(0); var rd = file.ReadInt(); Assert.Equal(13, rd); rd = file.ReadInt(); Assert.Equal(17, rd); file.Close(); Assert.False(file.IsOpen); }