public void WriteAndReadFloatViaDiskFile() { var file = new DiskFile("testC.dat", "rwb"); Assert.NotNull(file); Assert.True(file.CanWrite); file.WriteFloat(13); file.WriteFloat(17); file.Seek(0); var rd = file.ReadFloat(); Assert.Equal(13, rd); rd = file.ReadFloat(); Assert.Equal(17, rd); file.Close(); Assert.False(file.IsOpen); }