"......"));
}
@Test
public void shouldAllowUsersToToggleCells() {
StringRenderer renderer = new StringRenderer();
Game game = new Game(6, 4);
game.setObserver(renderer);
game.toggleCellAt(2, 1);
assertThat(renderer.asString(), Matchers.equalTo(
"......" + NL +
"..X..." + NL +
"......" + NL +
"......"));
game.toggleCellAt(2, 2);
assertThat(renderer.asString(), Matchers.equalTo(
"......" + NL +
"..X..." + NL +
"..X..." + NL +
"......"));
game.toggleCellAt(2, 1);
assertThat(renderer.asString(), Matchers.equalTo(
"......" + NL +
"......" + NL +
"..X..." + NL +
"......"));
}