public void Contains_False() { var item = new object(); var list = new PrioritizedList <object>(); Fill(list, -5, 5); Assert.IsFalse(list.Contains(item)); }
public void Add_ItemIsAdded() { var item = new object(); var list = new PrioritizedList <object>(); list.Add(item); Assert.IsTrue(list.Contains(item)); }
public void Remove_TargetIsRemoved() { var item = new object(); var list = new PrioritizedList <object> { item }; Fill(list, -5, 5); list.Remove(item); Assert.IsFalse(list.Contains(item)); }