Exemplo n.º 1
0
 private void DoLayout()
 {
     foreach (var sizedRect in sizedRects)
     {
         placedRectangles.Add(layouter.PutNextRectangle(sizedRect));
     }
 }
Exemplo n.º 2
0
        public void CloudLayoutShouldFail_WithEmptyRect()
        {
            withTearDown = false;
            layouter     = new CircularCloudLayouter(new Point(cloudCenterX, cloudCenterY));

            Action act = () =>
                         layouter.PutNextRectangle(new Size());

            act.ShouldThrow <ArgumentException>();
        }