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."); } }
public void TestParseEmptyStringFailed() { const string testData = ""; try { _ = RouteLoader.Parse(testData); } catch (FormatException) { return; } throw new Exception($"An exception was expected `FormatException`."); }