public void Swap_SwapValues_ValuesSwaped() { var calc = new StackCalculator(); calc.Push(100); calc.Push(200); calc.Swap(); Expect(calc.Pop(), Is.EqualTo(100)); }
public void Swap_InvalidOperation_ThrowsException() { var calc = new StackCalculator(); //calc.Push(10); Exception e = Assert.Throws<InvalidOperationException>(() => calc.Swap()); }