Beispiel #1
0
        public void NoSectionsTest()
        {
            var route = new Database.Model.Route
            {
                Waypoints = new List <RoutePoint> {
                    new WayPoint(0, 0)
                },
                Sections = null
            };

            var section = route.GetSectionForPosition(new WayPoint(0, 0));

            Assert.Equal("Default", section.Name);
        }
Beispiel #2
0
        public void SectionDetectionTest(double latitude, double longitude, string sectionName)
        {
            var section = _route.GetSectionForPosition(new WayPoint(latitude, longitude));

            Assert.Equal(sectionName, section.Name);
        }