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