Example #1
0
        public void TestParseSuccess()
        {
            const string testData = "103э;103Э";
            var          route    = RouteLoader.Parse(testData);

            if (route.ExternalNumber != "103э" || route.YandexNumber != "103Э")
            {
                throw new Exception($"Parse route.");
            }
        }
Example #2
0
        public void TestParseEmptyStringFailed()
        {
            const string testData = "";

            try
            {
                _ = RouteLoader.Parse(testData);
            }
            catch (FormatException)
            {
                return;
            }
            throw new Exception($"An exception was expected `FormatException`.");
        }