예제 #1
0
        public void Test_Decode_LineString()
        {
            var multiPoint = new LineString(new List <Position>()
            {
                new Position(38.5, -120.2),
                new Position(40.7, -120.95),
                new Position(43.252, -126.453),
            });

            var decoder = new PolyLineEncoder();
            var points  = decoder.Decode("_p~iF~ps|U_ulLnnqC_mqNvxq`@");

            Assert.NotStrictEqual(multiPoint, points);
        }
예제 #2
0
        public void Test_Decode_Error()
        {
            var decoder = new PolyLineEncoder();

            Assert.Throws <ArgumentNullException>(() => decoder.Decode(null));
        }