public void TestRemoveSubscriptionRequest() { using (var stream = new MemoryStream()) { var source = new SubscriptionRequest("FOO", "bar", false); source.Write(new DataWriter(stream)); stream.Seek(0, SeekOrigin.Begin); var dest = Message.Read(new DataReader(stream)); Assert.AreEqual(source, dest); } }