public void Doest_Not_Accept_Money_If_Is_Not_Working() { _sut.SimulateError(); Action act = () => _sut.InsertMoney(5); act.Should().Throw <IsNotWorkingException>(); }
public SweetMachineShould() { _sut = new SweetMachine(_mockListOfCandies); _sut.InsertMoney(5); }