assertPosition( bounds4, 100, 100 );
}
@Test
public void testStacksFourRectanglesWithLineBreakAndUsesBiggestHeightAsY() {
Stacker stacker = new Stacker( new Bounds( 0, 0, 200, 600 ) );
Bounds bounds1 = stacker.stack( 100, 200 );
Bounds bounds2 = stacker.stack( 100, 100 );
Bounds bounds3 = stacker.stack( 100, 100 );
Bounds bounds4 = stacker.stack( 100, 100 );
assertPosition( bounds1, 0, 0 );
assertPosition( bounds2, 100, 0 );
assertPosition( bounds3, 0, 200 );
assertPosition( bounds4, 100, 200 );