public void WriteAndReadDoubleViaDiskFile() { var file = new DiskFile("testE.dat", "rwb"); Assert.NotNull(file); Assert.True(file.CanWrite); file.WriteDouble(13); file.WriteDouble(17); file.Seek(0); var rd = file.ReadDouble(); Assert.Equal(13, rd); rd = file.ReadDouble(); Assert.Equal(17, rd); file.Close(); Assert.False(file.IsOpen); }