Ejemplo n.º 1
0
        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);
        }));
Ejemplo n.º 2
0
 public void WriteToStream(Stream stream) => SaveKh2.Write(stream, save);