public void MultPopTest() { var calc = new StackCountImpl(); calc.StackNumbers(); Assert.AreEqual(400, calc.MultPop()); }
public void DivTest() { var calc = new StackCountImpl(); calc.StackNumbers(); Assert.AreEqual(0.25, calc.Div()); }
public void SubAllTest() { var calc = new StackCountImpl(); calc.StackNumbers(); Assert.AreEqual(-30, calc.SubAll()); }
public void PushTest() { var calc = new StackCountImpl(); calc.StackNumbers(); Assert.AreEqual(3, calc.stack.Count); }
public void ClearTest() { var calc = new StackCountImpl(); calc.StackNumbers(); calc.Clear(); Assert.AreEqual(0, calc.stack.Count); }
public void AddPop() { var calc = new StackCountImpl(); calc.Clear(); calc.StackNumbers(); Assert.AreEqual(50, calc.AddPop()); }
public void AddTest() { var calc = new StackCountImpl(); calc.Clear(); calc.StackNumbers(); Assert.AreEqual(100, calc.AddAll()); }
public void TopTest() { var calc = new StackCountImpl(); calc.StackNumbers(); Assert.AreEqual(10, calc.stack.Peek()); Assert.AreEqual(3, calc.stack.Count); }