Exemplo n.º 1
0
        public void ShouldFailInvalidRoutes(string routeText)
        {
            IAgencyDataParser sut = new TtcDataParser(null);

            var result = sut.TryParseToRouteTag(routeText);

            Assert.False(result.Success);
            Assert.Null(result.RouteTag);
        }
Exemplo n.º 2
0
        public void ShouldParseRouteTag(string routeText)
        {
            IAgencyDataParser sut = new TtcDataParser(null);

            var result = sut.TryParseToRouteTag(routeText);

            Assert.True(result.Success);
            Assert.NotEmpty(result.RouteTag);
        }