public void TestBytesSplitAndJoin(string s, params string[] res) { var m = Multiaddress.Decode(s); var split = m.Split().ToArray(); Assert.Equal(split.Length, res.Length); for (var i = 0; i < split.Length; i++) { Assert.Equal(split[i].ToString(), res[i]); } var joined = Multiaddress.Join(split); Assert.Equal(m, joined); }