public void BoundaryCtorTest()
        {
            Rect         r  = new Rect(0, 0, 10, 100);
            GraphicsArea ut = new GraphicsArea(r);

            Assert.Equal(r, ut.Boundary);
            Assert.Equal(r, ut.Free);
        }
        public void SizeCtorTest()
        {
            Rect         r1 = new Rect(0, 0, 10, 100);
            Size         s0 = new Size(10, 100);
            GraphicsArea ut = new GraphicsArea(s0);

            Assert.Equal(r1, ut.Boundary);
            Assert.Equal(r1, ut.Free);
        }
        public void AllocateTest(string b0, string[] rr0, bool[] a1, string f1)
        {
            GraphicsArea ut = new GraphicsArea(Rect.Parse(b0));

            Assert.Equal(rr0.Length, a1.Length);
            for (int i = 0; i < rr0.Length; ++i)
            {
                Assert.Equal(a1[i], ut.Allocate(Rect.Parse(rr0[i])));
            }

            Assert.Equal(Rect.Parse(f1), ut.Free);
        }