public void TestAddAll() { IFancyCalculator x = new FancyCalculator(); x.Push(10); x.Push(10); x.Push(10); Assert.IsTrue(x.Top() == 10); x.AddAll(); Assert.IsTrue(x.Top() == 30); }