public void TestWriteBackTheSameExactFile() => File.OpenRead(FilePath).Using(stream => Helpers.AssertStream(stream, inStream => { var save = SaveKh2.Read <SaveKh2.SaveFinalMix>(inStream); var outStream = new MemoryStream(); SaveKh2.Write(outStream, save); return(outStream); }));
public void WriteToStream(Stream stream) => SaveKh2.Write(stream, save);