Esempio n. 1
0
            public void ShouldWriteTheExactSameFile() => File.OpenRead("kh2/res/trsr.bin").Using(stream =>
            {
                Helpers.AssertStream(stream, x =>
                {
                    var outStream = new MemoryStream();
                    Trsr.Write(outStream, Trsr.Read(x));

                    return(outStream);
                });
            });
Esempio n. 2
0
 public void CheckNewTrsr() => File.OpenRead(@"kh2/res/trsr.bin").Using(stream =>
 {
     var table = Trsr.Read(stream);
     Assert.Equal(0x1AE, table.Count);
 });