Exemplo n.º 1
0
        public void ContainsReturnFalseIfCollectionDoesNotContainItem()
        {
            var item = new EmptyStep();

            var expected = false;

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

            _collection.Add(item);

            var expected = true;

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

            _collection.Add(item);

            _collection.Remove(item);

            var expected = false;

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