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."); }
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."); }