public void ShouldReadAndWriteObject() { var service = new SerializationService(new BinarySerializer()); const string value = "asdf"; var data = service.WriteObject(typeof (string), value); var readValue = service.ReadObject(typeof (string), data); readValue.ShouldBe(value); }