public void should_return_lat_and_lon() { var sut = new CoordinateRequestLocationProvider(40.344F, -74.58F); var args = sut.Build(); args.Count(x => x.Key.Equals("lat") && x.Value.Equals("40.344")).ShouldEqual(1); args.Count(x => x.Key.Equals("lon") && x.Value.Equals("-74.58")).ShouldEqual(1); }
public void should_reject_bad_lon() { var sut = new CoordinateRequestLocationProvider(40.3f, -374.85F); }
public void should_reject_bad_lat() { var sut = new CoordinateRequestLocationProvider(-200, -74.85F); }