public void EncodePolyLineTest() { var locations = new[] { new Location(1.0101, 1.0101), new Location(2.20202, 2.20202), new Location(3.30303, 3.30303) }; var encodePolyLine = GoogleFunctions.EncodePolyLine(locations); Assert.IsNotNull(encodePolyLine.FirstOrDefault()); Assert.AreEqual(GoogleFunctionsTest.POLY_LINE, encodePolyLine); }
public void EncodePolyLineWhenLocationsIsNullTest() { var exception = Assert.Throws <ArgumentNullException>(() => GoogleFunctions.EncodePolyLine(null)); Assert.AreEqual("locations", exception.ParamName); }