示例#1
0
        public void PushButtonWithUnknownBoilerStatusDoesNotStartsBoiler(
            [Frozen] Mock <ICoffeeMaker> hardwareMock,
            Boiler sut)
        {
            sut.OnNext(BrewButtonStatus.PUSHED);

            hardwareMock.Verify(
                hw => hw.SetBoilerState(BoilerState.ON),
                Times.Never());
        }
示例#2
0
        public void FillBoilerWithoutPushingButtonDoesNotTurnOnBoiler(
            [Frozen] Mock <ICoffeeMaker> hardwareMock,
            Boiler sut)
        {
            sut.OnNext(BoilerStatus.NOT_EMPTY);

            hardwareMock.Verify(
                hw => hw.SetBoilerState(BoilerState.ON),
                Times.Never());
        }
示例#3
0
        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);
 }
示例#6
0
 public void OnNextBoilerStatusEmptyDoesNotThrow(Boiler sut)
 {
     Assert.DoesNotThrow(() => sut.OnNext(BoilerStatus.EMPTY));
 }