예제 #1
0
		public void SetterStillSealedAfterRemove ()
		{
			Setter s = new Setter (UIElement.OpacityProperty, 2.0);
			SetterBaseCollection sbc = new SetterBaseCollection ();
			Assert.IsFalse (sbc.IsSealed, "SetterBaseCollection.IsSealed-1");
			Assert.IsFalse (s.IsSealed, "Setter.IsSealed-1");
			sbc.Add (s);
			Assert.IsFalse (sbc.IsSealed, "SetterBaseCollection.IsSealed-2");
			Assert.IsTrue (s.IsSealed, "Setter.IsSealed-2");
			sbc.Remove (s);
			Assert.IsFalse (sbc.IsSealed, "SetterBaseCollection.IsSealed-3");
			Assert.IsTrue (s.IsSealed, "Setter.IsSealed-3");
		}
예제 #2
0
		public void Remove ()
		{
			SetterBaseCollection sbc = new SetterBaseCollection ();
			Assert.IsFalse (sbc.Remove (null), "null");
			Assert.IsFalse (sbc.Remove (new Setter ()), "Empty");
		}