public void RemoveFirstElementAndCheckForEvent()
        {
            itemCollection = this.PlainCollection();
            int i = itemCollection.Count;

            itemCollection.RemoveAt(1);
            Assert.AreEqual(i - 1, itemCollection.Count);
        }
예제 #2
0
        public void RemoveFirstElementAndCheckForEvent()
        {
            itemCollection = this.PlainCollection();
            int i = itemCollection.Count;

            itemCollection.Removed += OnRemoveItem;
            itemCollection.RemoveAt(1);
            Assert.AreEqual(i - 1, itemCollection.Count);
            Assert.IsTrue(gotEvent, "No 'removed' Event");
            gotEvent = false;
        }
		public void RemoveFirstElementAndCheckForEvent ()
		{
			itemCollection = this.PlainCollection();
			int i = itemCollection.Count;
			itemCollection.RemoveAt(1);
			Assert.AreEqual(i-1,itemCollection.Count) ;
		}
		public void RemoveFirstElementAndCheckForEvent ()
		{
			itemCollection = this.PlainCollection();
			int i = itemCollection.Count;
			itemCollection.Removed += OnRemoveItem;
			itemCollection.RemoveAt(1);
			Assert.AreEqual(i-1,itemCollection.Count) ;
			Assert.IsTrue(gotEvent,"No 'removed' Event");
			gotEvent = false;
		}