Пример #1
0
        public void ShouldFailDirection(string directionText)
        {
            IAgencyDataParser sut = new TtcDataParser(null);

            var result = sut.TryParseToDirectionName(null, directionText);

            Assert.False(result.Success);
            Assert.Null(result.DirectionName);
        }
Пример #2
0
        public void ShouldParseDirection(string expectedDirection, string directionText)
        {
            IAgencyDataParser sut = new TtcDataParser(null);

            var result = sut.TryParseToDirectionName(null, directionText);

            Assert.True(result.Success);
            Assert.Equal(expectedDirection, result.DirectionName);
        }