public void EmptyBoard_NoChange() { var board = BoardSamples.Board2; var solver = new FirstGroupTooSmall(); var actualChanges = solver.Solve(board); Assert.Empty(actualChanges); }
public void BoardWithTwoToFillHorizontal_Flipped_MarkOneAsBlocked() { var board = BoardSamples.Board7_ManualFlipped .ApplyChanges( BoardChange.Blocked(3, 4) ); var solver = new FirstGroupTooSmall(); var actualChanges = solver.Solve(board); var expected = new List <BoardChange> { BoardChange.Blocked(4, 4) }; Assert.Equal(expected, actualChanges); }
public void BoardWithTwoToFillVertical_MarkOneAsBlocked() { var board = BoardSamples.Board7 .ApplyChanges( BoardChange.Blocked(0, 1) ); var solver = new FirstGroupTooSmall(); var actualChanges = solver.Solve(board); var expected = new List <BoardChange> { BoardChange.Blocked(0, 0) }; Assert.Equal(expected, actualChanges); }