public void Can_serialize_email_dto() { using (var ms = new MemoryStream()) { WireFormat.Serialize(request, ms); ms.Position = 0; var response = WireFormat.Deserialize(request.GetType(), ms); Assert.That(response.Equals(request)); } }