public void InsertQuarter_ShouldInsertQuarter() { var gm = new GumballMachine.GumballMachine(5); gm.InsertQuarter(); Assert.AreEqual(GetGumballMachineString(5, "waiting for turn of crank"), gm.ToString()); }
public void TurnCrank_AfterInsertQuarter_ShouldTurnCrank() { var gm = new GumballMachine.GumballMachine(5); gm.InsertQuarter(); gm.TurnCrank(); Assert.AreEqual(GetGumballMachineString(4, "waiting for quarter"), gm.ToString()); }