89101112131415
public class ColumnTest { @Test public void emptyColumnShouldPrintEmptyState() { Column column = new Column(0); assertEquals("0: ", column.printState()); }
151617181920212223
} @Test public void columnWithBoxAShouldPrintStateWithBoxA() { Column column = new Column(0); column.pileBox("a"); assertEquals("0: a", column.printState()); }
23242526272829303132
} @Test public void columnWithTwoBoxes() { Column column = new Column(0); column.pileBox("a"); column.pileBox("b"); assertEquals("0: a b", column.printState()); }
313233343536373839404142
assertEquals("0: a b", column.printState()); } @Test public void removeBoxShould() throws Exception { Column column = new Column(0); column.pileBox("a"); column.removeBox("a"); assertEquals("0: ", column.printState()); }