910111213141516171819
{ @Test public void emptyColumnShouldPrintEmptyState() { Column column = new Column(0); assertEquals("0: ", column.printState()); } @Test public void columnWithBoxAShouldPrintStateWithBoxA() {
1718192021222324252627
@Test public void columnWithBoxAShouldPrintStateWithBoxA() { Column column = new Column(0); column.pileBox("a"); assertEquals("0: a", column.printState()); } @Test public void columnWithTwoBoxes() {
2627282930313233343536
public void columnWithTwoBoxes() { Column column = new Column(0); column.pileBox("a"); column.pileBox("b"); assertEquals("0: a b", column.printState()); } @Test public void removeBoxShould() throws Exception { Column column = new Column(0);
3637383940414243
Column column = new Column(0); column.pileBox("a"); column.removeBox("a"); assertEquals("0: ", column.printState()); } }