public void P11_TestMockGridLoading() { var gs = new GridSolver(); gs.LoadMockGrid(5, _mockGrid); Assert.AreEqual(25, gs.MockGridSize); Assert.AreEqual(0, gs.GridSize); }
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); }