示例#1
0
        public void FindPath()
        {
            bool[][] input = new bool[][] {
                new bool[] { true, true, false, true },
                new bool[] { true, true, true, true },
                new bool[] { false, true, false, true },
                new bool[] { true, true, true, true }
            };

            var result = new RobotGrid().FindPath(input);

            Assert.Equal(7, result.Count);
        }
示例#2
0
        private IRobotGrid dummyRobotGrid()
        {
            var grid = new RobotGrid(6, 7, 10, 10, 14);

            return(grid);
        }