protected override void Act() { _sqr1.Cell(1).Analyse(); _sqr1.Cell(2).Analyse(); _sqr1.Cell(3).Analyse(); _sqr1.Cell(4).Analyse(); _sqr1.Cell(5).Analyse(); _sqr1.Cell(6).Analyse(); _sqr1.Cell(7).Analyse(); _sqr1.Cell(8).Analyse(); _sqr1.Cell(9).Analyse(); }
protected override void Arrange() { var sudoku = SudokuMother.CreateEmptySudoku(); _sqr1 = sudoku.Sqr(1); sudoku.Row(1).SetValueOfCell(4).To(Solver.CellValue.Four); sudoku.Row(2).SetValueOfCell(7).To(Solver.CellValue.Four); Assert.That(sudoku.Row(1).Contains(Solver.CellValue.Four), Is.EqualTo(true)); Assert.That(sudoku.Row(2).Contains(Solver.CellValue.Four), Is.EqualTo(true)); Assert.That(sudoku.Row(3).Contains(Solver.CellValue.Four), Is.EqualTo(false)); Assert.That(_sqr1.Cell(7).CanBe(Solver.CellValue.Four), Is.EqualTo(Tristate.DontKnow)); Assert.That(_sqr1.Cell(8).CanBe(Solver.CellValue.Four), Is.EqualTo(Tristate.DontKnow)); Assert.That(_sqr1.Cell(9).CanBe(Solver.CellValue.Four), Is.EqualTo(Tristate.DontKnow)); }