Ejemplo n.º 1
0
        public void PropertyDefaultSize()
        {
            VariableSizeControl       c   = new VariableSizeControl();
            ExposeProtectedProperties epp = new ExposeProtectedProperties(c);

            Assert.AreEqual(new Size(-1, -1), epp.DefaultSize, "#A1");

            c.Size = new Size(666, 666);
            Assert.AreEqual(new Size(666, 666), c.Size, "#B99");
            Assert.AreEqual(new Size(666, 666), epp.DefaultSize, "#B1");
        }
		public void PropertyDefaultSize ()
		{
			VariableSizeControl c = new VariableSizeControl ();
			ExposeProtectedProperties epp = new ExposeProtectedProperties (c);

			Assert.AreEqual (new Size (-1, -1), epp.DefaultSize, "#A1");

			c.Size = new Size (666, 666);
			Assert.AreEqual (new Size (666, 666), c.Size, "#B99");
			Assert.AreEqual (new Size (666, 666), epp.DefaultSize, "#B1");
		}