public void StackWithArray_IsFull_should_return_false_when_stack_has_less_elements() { StackWithArray <int> st2 = new StackWithArray <int>(2); st2.Push(1); Assert.AreEqual(false, st2.IsFull()); }
public void StackWithArray_IsFull_should_return_true_when_stack_has_capacity_number_of_elements() { StackWithArray <int> st2 = new StackWithArray <int>(2); st2.Push(1); st2.Push(3); Assert.AreEqual(true, st2.IsFull()); }
public void StackWithArray_IsFull_should_return_false_when_stack_is_empty() { Assert.AreEqual(false, st.IsFull()); }