Ejemplo n.º 1
0
 public void ItIsPossibleToTake10CoffeesAfterTheMessageFillWaterTankIsDisplayed()
 {
     // Given I take "60" coffees
     Actionwords.ITakeCoffeeNumberCoffees(60);
     // Then coffee should be served
     Actionwords.CoffeeShouldBeServed();
     // When I take a coffee
     Actionwords.ITakeACoffee();
     // Then coffee should not be served
     Actionwords.CoffeeShouldNotBeServed();
 }
Ejemplo n.º 2
0
 public void ItIsPossibleToTake40CoffeesBeforeThereIsReallyNoMoreBeans()
 {
     // Given I take "40" coffees
     Actionwords.ITakeCoffeeNumberCoffees(40);
     // Then coffee should be served
     Actionwords.CoffeeShouldBeServed();
     // When I take a coffee
     Actionwords.ITakeACoffee();
     // Then coffee should not be served
     Actionwords.CoffeeShouldNotBeServed();
     // And message "Fill beans" should be displayed
     Actionwords.MessageMessageShouldBeDisplayed("Fill beans");
 }