Beispiel #1
0
 public void CocktailHasCorrectIngredient()
 {
     _searchCocktail = new SCService("blue margarita");
     Assert.That(_searchCocktail.GetIngredients(), Does.Contain("tequila").IgnoreCase);
 }
Beispiel #2
0
 public void IfInputIsCocktail_AllResultsMustContainInput()
 {
     _searchCocktail = new SCService("margarita");
     Assert.That(_searchCocktail.CheckAllCocktailsContainSearchInput());
 }
Beispiel #3
0
 public void IfInputIsNotACocktail_ResultMustBeNull()
 {
     _searchCocktail = new SCService("notcocktail");
     Assert.That(_searchCocktail.GetResult(), Is.Null);
 }
Beispiel #4
0
 public void IfInputIsCocktail_ResultMustBeGreaterThan0()
 {
     _searchCocktail = new SCService("margarita");
     Assert.That(_searchCocktail.GetResult(), Has.Length.GreaterThan(0));
 }