public void Run() { using ( var pacStream = new MemoryStream() ) using ( var pacCompactStream = new MemoryStream() ) { Unpacker pac = Unpacker.Create( pacStream ); Unpacker pac_compact = Unpacker.Create( pacCompactStream ); FeedFile( pacStream, "." + Path.DirectorySeparatorChar + "cases.mpac" ); FeedFile( pacCompactStream, "." + Path.DirectorySeparatorChar + "cases_compact.mpac" ); pac.SequenceEqual( pac_compact, EqualityComparer<MessagePackObject>.Default ); } }