Exemplo n.º 1
0
		public void CopyEnabled ()
		{
			Label l = new Label (), ll = new Label ();
			l.Enabled = false;
			ll.CopyBaseAttributes (l);
			Assert.IsFalse (ll.Enabled, "enabled should be copied");

			WebControlTestClass c = new WebControlTestClass ();
			c.SetTrackingVS ();
			c.CopyBaseAttributes (l);
			object o = c.Save ();
			c = new WebControlTestClass ();
			c.Load (o);
			Assert.IsFalse (c.Enabled, "enabled should be copied#2");
		}