Esempio n. 1
0
        public void P11_TestMockGridLoading()
        {
            var gs = new GridSolver();

            gs.LoadMockGrid(5, _mockGrid);
            Assert.AreEqual(25, gs.MockGridSize);
            Assert.AreEqual(0, gs.GridSize);
        }
Esempio n. 2
0
        public void P11_TestFindMaxPowerMockGrid()
        {
            var gs = new GridSolver();

            gs.LoadMockGrid(5, _mockGrid);
            gs.BlockSizeLimit = 3;
            gs.FindMaxPower();
            var maxIdx = gs.MaxIndex;

            Assert.AreEqual(2, maxIdx.X);
            Assert.AreEqual(2, maxIdx.Y);
        }