Пример #1
0
        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);
        }
Пример #2
0
        public void EncodePolyLineWhenLocationsIsNullTest()
        {
            var exception = Assert.Throws <ArgumentNullException>(() => GoogleFunctions.EncodePolyLine(null));

            Assert.AreEqual("locations", exception.ParamName);
        }