public void And_Geo_Property_Is_NonNull_Then_Coordinates_Should_Be_In_Legacy_Format() { string testJson = DummyTimeLineJson.GetTimeLineJsonWithGeoPropertySet(); List <TimeLine> timeline = JsonConvert.DeserializeObject <List <TimeLine> >(testJson); TimeLine timelineItem = timeline.FirstOrDefault(); AssertCoordinateFormatForTypedCoordinateContainer(timelineItem.Geo); }
public void And_Geo_Property_Is_NonNull_Then_Deserialization_Should_Not_Throw_Errors(string coordinateType) { string testJson = DummyTimeLineJson.GetTimeLineJsonWithGeoPropertySet(coordinateType); Assert.DoesNotThrow(() => JsonConvert.DeserializeObject <List <TimeLine> >(testJson)); }