public void SendMultipartMessage() { using (var rep = new ResponseSocket()) using (var req = new RequestSocket()) { var port = rep.BindRandomPort("tcp://localhost"); req.Connect("tcp://localhost:" + port); req.SendMoreFrame("Hello").SendFrame("World"); CollectionAssert.AreEqual(new[] { "Hello", "World" }, rep.ReceiveMultipartStrings()); rep.SendMoreFrame("Hello").SendFrame("Back"); CollectionAssert.AreEqual(new[] { "Hello", "Back" }, req.ReceiveMultipartStrings()); } }