public void EmptyRectanglesAndZeroSize_WhenNoRectangles()
        {
            var expectedSize    = new Size(0, 0);
            var rectanglesCloud = new RectanglesCloud(new Point(0, 0));

            rectanglesCloud.Size.ShouldBeEquivalentTo(expectedSize);
        }
        public void CalculateSize_WhenRectanglesWithPositiveAndNeganiveCoordinates()
        {
            var expectedSize    = new Size(50, 55);
            var rectanglesCloud = new RectanglesCloud(new Point(10, 10));

            rectanglesCloud.PutNextRectangle(new Rectangle(10, 10, 5, 5));
            rectanglesCloud.PutNextRectangle(new Rectangle(-20, -15, 5, 5));
            rectanglesCloud.PutNextRectangle(new Rectangle(20, -40, 10, 10));
            rectanglesCloud.Size.ShouldBeEquivalentTo(expectedSize);
        }
 public void SetUp()
 {
     rectCloud = new RectanglesCloud(new CircularLayouter(new ArchimedeanSpiral()));
 }