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); }
public void SectionDetectionTest(double latitude, double longitude, string sectionName) { var section = _route.GetSectionForPosition(new WayPoint(latitude, longitude)); Assert.Equal(sectionName, section.Name); }