예제 #1
0
        public void TestWriteBackTheSameExactFile() =>
        File.OpenRead(FilePath).Using(stream => Helpers.AssertStream(stream, inStream =>
        {
            var save = SaveFf7Remake.Read(inStream);

            var outStream = new MemoryStream();
            save.Write(outStream);

            return(outStream);
        }));
예제 #2
0
 public void ReadSaveTest() =>
 File.OpenRead(FilePath).Using(stream =>
                               AssertSaveGame(SaveFf7Remake.Read(stream)));