Пример #1
0
        public void Delete_unique_not_existing_element()
        {
            UniqueList <int> uList = new UniqueList <int>();

            uList.Push(0);
            uList.Push(1);
            uList.Push(2);
            uList.DeleteUnique(3);
        }
Пример #2
0
        public void Delete_unique_existing_element()
        {
            int expected           = 0;
            UniqueList <int> uList = new UniqueList <int>();

            uList.Push(0);
            uList.Push(1);
            uList.DeleteUnique(1);
            int actual = uList.Pop();

            Assert.AreEqual(expected, actual);
        }