Beispiel #1
0
        public void TestLatticePaths20x20()
        {
            int columns = 20, rows = 20;
            var task = new Task15(rows, columns);

            Assert.AreEqual(137846528820, task.Run(), $"Routes count in {rows}x{columns} grid is incorrect");
        }
Beispiel #2
0
        public void TestLatticePaths2x2()
        {
            int columns = 2, rows = 2;
            var task = new Task15(rows, columns);

            Assert.AreEqual(6, task.Run(), $"Routes count in {rows}x{columns} grid is incorrect");
        }