public void isEmpty_ofAnewStack_isEmptyfalse() { Stack testStack = new Stack(); bool result = testStack.isEmpty(); Assert.IsTrue(result); }
public void isEmpty_ofAStackWith3ItemsPopTo0_isEmptyTrue() { Stack testStack = new Stack(); string testString = "this is a testString 1"; string testString2 = "this is the 2nd test String"; string testString3 = "this is the 3rd test String"; testStack.push(testString); testStack.push(testString2); testStack.push(testString3); testStack.Pop(); testStack.Pop(); testStack.Pop(); bool result = testStack.isEmpty(); Assert.IsTrue(result); }