public void TestMethod1() { using (var stream = CreateResource()) { Tokenizer tokenizer = new Tokenizer(); var tokens = tokenizer.Tokenize(stream); RouteParser parser = new RouteParser(); var routes = parser.GetRoutes(tokens).ToList(); Assert.AreEqual(28, routes.Count); } }
public void TestMethod3() { using (var stream = CreateResource()) { Tokenizer tokenizer = new Tokenizer(); var tokens = tokenizer.Tokenize(stream); RouteParser parser = new RouteParser(); var routes = parser.GetRoutes(tokens).ToList(); var bestPath = new RouteCalculator().CalculateAllRoutes(routes).OrderByDescending(x => x.Item2).First(); Assert.AreEqual(804, bestPath.Item2); } }