Ejemplo n.º 1
0
            public void Write(string fileName) => File.OpenRead(fileName).Using(stream =>
            {
                Helpers.AssertStream(stream, x =>
                {
                    var outStream = new MemoryStream();
                    Memt.Write(outStream, Memt.Read(x));

                    return(outStream);
                });
            });
Ejemplo n.º 2
0
 public void Read(string fileName) => File.OpenRead(fileName).Using(stream =>
 {
     var table = Memt.Read(stream);
     Assert.Equal(0x5, table.Entries.Count);
     Assert.Equal(0x7, table.MemberIndexCollection.Length);
 });