Beispiel #1
0
        public void SerializesAndDeserializesReverse()
        {
            // First, deserialize the example response
            ReverseGeocodeResponse reverseResp = _geocoder.Deserialize <ReverseGeocodeResponse>(_reverseResponse);

            // Then deserialize it back to a string.
            string reverseReserialized = JsonConvert.SerializeObject(reverseResp, JsonConverters.Converters);

            // Ensure the two match
            Assert.AreEqual(_reverseResponse, reverseReserialized);
        }