示例#1
0
        public void StackWithLinkedList_IsFull_should_return_false_when_stack_has_less_elements()
        {
            StackWithLinkedList <int> st2 = new StackWithLinkedList <int>(2);

            st2.Push(1);

            Assert.AreEqual(false, st2.IsFull());
        }
示例#2
0
        public void StackWithLinkedList_IsFull_should_return_true_when_stack_has_capacity_number_of_elements()
        {
            StackWithLinkedList <int> st2 = new StackWithLinkedList <int>(2);

            st2.Push(1);
            st2.Push(3);

            Assert.AreEqual(true, st2.IsFull());
        }
示例#3
0
 public void StackWithLinkedList_IsFull_should_return_false_when_stack_is_empty()
 {
     Assert.AreEqual(false, st.IsFull());
 }