Beispiel #1
0
        public void ContainsReturnFalseIfCollectionDoesNotContainItem()
        {
            var item = new EmptyStep();

            var expected = false;

            Assert.AreEqual(expected, _collection.Contains(item));
        }
Beispiel #2
0
        public void RemoveReturnTrueIfCollectionContainsItem()
        {
            var item = new EmptyStep();

            _collection.Add(item);

            var expected = true;

            Assert.AreEqual(expected, _collection.Remove(item));
        }
Beispiel #3
0
        public void CollectionDoesNotContainItemAfterRemove()
        {
            var item = new EmptyStep();

            _collection.Add(item);

            _collection.Remove(item);

            var expected = false;

            Assert.AreEqual(expected, _collection.Contains(item));
        }