public void Push_WithValidValue_Success() { IBasicStack <int> stack = new BasicStack <int>(); stack.Push(1); Assert.Equal(1, stack.Size()); }
public void Size_ForNonEmptyStackAfterPushAndPop_Success() { IBasicStack <int> stack = new BasicStack <int>(); stack.Push(1); stack.Push(2); stack.Push(3); stack.Pop(); Assert.Equal(2, stack.Size()); }
public void Size_ForNonEmptyStack_ReturnsOne() { IBasicStack <int> stack = new BasicStack <int>(); for (var i = 0; i < 3; i++) { stack.Push(i); } Assert.Equal(3, stack.Size()); }
public void Size_ForEmptyStack_ReturnsZero() { IBasicStack <int> stack = new BasicStack <int>(); Assert.Equal(0, stack.Size()); }