Example #1
0
        public void TestRemoveInvalidItem()
        {
            StubCollection testedCollection = new StubCollection();

            bool foundAndRemoved = testedCollection.Remove(new TestObject());

            Assert.IsFalse(foundAndRemoved, "The Remove(item) method returned true although an invalid item was passed.");
        }
Example #2
0
        public void TestRemoveInvalidKey()
        {
            StubCollection testedCollection = new StubCollection();

            bool foundAndRemoved = testedCollection.Remove("InvalidKey");

            Assert.IsFalse(foundAndRemoved, "The Remove(key) method returned true although an invalid key was passed.");
        }