private CanRemoveNonExistingInt32Element ( ) : void | ||
return | void |
public void CanRemoveNonExistingInt32Element()
{
var list = new RecentCollection<int>(10) { 1, 2, 3, 4, 5 };
int oldCount = list.Count;
bool removed = list.Remove(1024);
Assert.IsFalse(removed);
Assert.AreEqual(oldCount, list.Count);
}