コード例 #1
0
        public void Contains_False()
        {
            var item = new object();
            var list = new PrioritizedList <object>();

            Fill(list, -5, 5);

            Assert.IsFalse(list.Contains(item));
        }
コード例 #2
0
        public void Add_ItemIsAdded()
        {
            var item = new object();
            var list = new PrioritizedList <object>();

            list.Add(item);

            Assert.IsTrue(list.Contains(item));
        }
コード例 #3
0
        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));
        }