public void ShouldFailInvalidRoutes(string routeText) { IAgencyDataParser sut = new TtcDataParser(null); var result = sut.TryParseToRouteTag(routeText); Assert.False(result.Success); Assert.Null(result.RouteTag); }
public void ShouldParseRouteTag(string routeText) { IAgencyDataParser sut = new TtcDataParser(null); var result = sut.TryParseToRouteTag(routeText); Assert.True(result.Success); Assert.NotEmpty(result.RouteTag); }