public void SolvableCell3Solved() { string input = "530070000600195000098000060800060003400803001700020006060000280000419005000080079"; Parser parser = new Parser(input); Cell currentCell = parser.StartCell; for (int i = 0; i < 24; i++) { currentCell = currentCell.GetNextCell(); } currentCell.UpdateAndConsiderPossibleValues(); Assert.AreEqual('5', currentCell.GetValue()); }
public void SolvableCell2Solved() { //This cell is solvable without involvement of cells that are filled in already. //That is, all filled in cells are also covered under the influence of another 8. string input = "530070000600195000098000060800060003400803001700020006060000280000419005000080079"; Parser parser = new Parser(input); Cell currentCell = parser.StartCell; for (int i = 0; i < 64; i++) { currentCell = currentCell.GetNextCell(); } currentCell.UpdateAndConsiderPossibleValues(); Assert.AreEqual('8', currentCell.GetValue()); }