コード例 #1
0
        public void GetPotentialWeight_ReturnsCellDistance(int sx, int sy, int ex, int ey, double expected)
        {
            var graph = new MazeGraph(_m3X3);
            var p     = graph.GetPotentialWeight(new Cell(sx, sy), new Cell(ex, ey));

            Assert.AreEqual(expected, p);
        }