MessageMessageShouldBeDisplayed() public method

public MessageMessageShouldBeDisplayed ( string message = "" ) : void
message string
return void
 public void MessagesAreBasedOnLanguage(string lang, string readyMessage)
 {
     // When I start the coffee machine "<lang>"
     Actionwords.IStartTheCoffeeMachine(lang);
     // Then message "<ready_message>" should be displayed
     Actionwords.MessageMessageShouldBeDisplayed(readyMessage);
 }
 public void NoMessagesAreDisplayedWhenMachineIsShutDown()
 {
     // Given the coffee machine is started
     Actionwords.TheCoffeeMachineIsStarted();
     // When I shutdown the coffee machine
     Actionwords.IShutdownTheCoffeeMachine();
     // Then message "" should be displayed
     Actionwords.MessageMessageShouldBeDisplayed("");
 }
Esempio n. 3
0
 public void FullGroundsDoesNotBlockCoffee()
 {
     // Given the coffee machine is started
     Actionwords.TheCoffeeMachineIsStarted();
     // And I handle everything except the grounds
     Actionwords.IHandleEverythingExceptTheGrounds();
     // When I take "50" coffees
     Actionwords.ITakeCoffeeNumberCoffees(50);
     // Then message "Empty grounds" should be displayed
     Actionwords.MessageMessageShouldBeDisplayed("Empty grounds");
     // And coffee should be served
     Actionwords.CoffeeShouldBeServed();
 }
Esempio n. 4
0
 public void MessageMessageShouldBeDisplayed(string message)
 {
     Actionwords.MessageMessageShouldBeDisplayed(message);
 }