Пример #1
0
        public void TestKMLGood2_2()
        {
            var routeData = new ParseKML(GetMemoryStream(KML2_2_Sample));

            Assert.AreEqual(4, routeData.RouteShape.Count);
            Assert.AreEqual(0, routeData.RouteStops.Count);
        }
Пример #2
0
        public void TestKMLGood()
        {
            var routeData = new ParseKML(GetMemoryStream(GoodKML));

            Assert.AreEqual(4, routeData.RouteShape.Count);
            Assert.AreEqual(2, routeData.RouteStops.Count);
        }
Пример #3
0
 public void TestKMLExtraRoute()
 {
     // Each KML file should contain just one route
     var routeData = new ParseKML(GetMemoryStream(KML_ExtraRoute));
 }
Пример #4
0
 public void TestKMLExtraRouteSegment()
 {
     var routeData = new ParseKML(GetMemoryStream(KMLMultiSegment));
 }
Пример #5
0
 public void TestKMLTooFewRoutePoints()
 {
     var routeData = new ParseKML(GetMemoryStream(KML_TooFewPoints));
 }