### Question:
BorderLayout extends VLayout { public void setNorthMember(Canvas member) { if (member == null) { north.setHeight(0); north.setMembers(); } else { member.setWidth("100%"); north.setHeight(1); north.setMembers(member); } } BorderLayout(); Canvas getCenterMember(); void setCenterMember(Canvas member); Canvas getNorthMember(); void setNorthMember(Canvas member); Canvas getSouthMember(); void setSouthMember(Canvas member); Canvas getWestMember(); void setWestMember(Canvas member); Canvas getEastMember(); void setEastMember(Canvas member);  }### Answer:
@Test public void test_resizesNorthMemberWidthToFull() { Canvas member = new Canvas(); borderLayout.setNorthMember(member); assertEquals("100%", member.getWidthAsString()); }
@Test public void test_resizesNorthHolderToAutoFit() { borderLayout.setNorthMember(new Canvas()); assertEquals(Integer.valueOf(1), getNorthHolder().getAttributeAsInt("height")); }
@Test public void test_resizesNorthHolderToNothingIfMemberIsNull() { borderLayout.setNorthMember(new Canvas()); borderLayout.setNorthMember(null); assertEquals(Integer.valueOf(0), getNorthHolder().getAttributeAsInt("height")); }