public void PushButtonWithUnknownBoilerStatusDoesNotStartsBoiler( [Frozen] Mock <ICoffeeMaker> hardwareMock, Boiler sut) { sut.OnNext(BrewButtonStatus.PUSHED); hardwareMock.Verify( hw => hw.SetBoilerState(BoilerState.ON), Times.Never()); }
public void FillBoilerWithoutPushingButtonDoesNotTurnOnBoiler( [Frozen] Mock <ICoffeeMaker> hardwareMock, Boiler sut) { sut.OnNext(BoilerStatus.NOT_EMPTY); hardwareMock.Verify( hw => hw.SetBoilerState(BoilerState.ON), Times.Never()); }
public void NotEmptyDoesNotTurnOffBoiler( [Frozen] Mock <ICoffeeMaker> hardwareMock, Boiler sut) { sut.OnNext(BoilerStatus.NOT_EMPTY); hardwareMock.Verify( hw => hw.SetBoilerState(BoilerState.OFF), Times.Never()); }
public void OnNextBoilerStatusEmptyDoesNotThrow(Boiler sut) { sut.OnNext(BoilerStatus.EMPTY); }
public void OnNexNotPushedBrewButtonDoesNotThrow(Boiler sut) { sut.OnNext(BrewButtonStatus.NOT_PUSHED); }
public void OnNextBoilerStatusEmptyDoesNotThrow(Boiler sut) { Assert.DoesNotThrow(() => sut.OnNext(BoilerStatus.EMPTY)); }