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); }); });
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); });