private void DoLayout() { foreach (var sizedRect in sizedRects) { placedRectangles.Add(layouter.PutNextRectangle(sizedRect)); } }
public void CloudLayoutShouldFail_WithEmptyRect() { withTearDown = false; layouter = new CircularCloudLayouter(new Point(cloudCenterX, cloudCenterY)); Action act = () => layouter.PutNextRectangle(new Size()); act.ShouldThrow <ArgumentException>(); }