public void TestTreeCounterMultiSlope() { MapTraverser traverser = new MapTraverser(); char[,] map = traverser.GetInputDataMap(TestDataFilePath); int noOfTrees = traverser.TreeCounterMultiSlope(map, this.slopes); Assert.AreEqual(336, noOfTrees); }
public void SolveDayThreePuzzelTwo() { var watch = System.Diagnostics.Stopwatch.StartNew(); MapTraverser traverser = new MapTraverser(); char[,] map = traverser.GetInputDataMap(PuzzleFilePath); int noOfTrees = traverser.TreeCounterMultiSlope(map, this.slopes); watch.Stop(); Console.WriteLine($"Execution Time: {watch.ElapsedMilliseconds} ms"); Assert.AreEqual(1115775000, noOfTrees); }