public void VerifyingBurgerSearch() { var searchTerm = "Burger"; var results = CCMenu.Search(searchTerm); var Results = new List <string>(); foreach (IOrderItem item in results) { Results.Add(item.ToString()); } var burgers = new List <IOrderItem> { new DakotaDoubleBurger(), new TexasTripleBurger(), new TrailBurger() }; var Burgers = new List <string>(); foreach (IOrderItem item in burgers) { Burgers.Add(item.ToString()); } foreach (string item in Burgers) { Assert.Contains(item, Results); } }
public void VerifyingNullSearch() { string searchTerm = null; var results = CCMenu.Search(searchTerm); var Results = new List <string>(); foreach (IOrderItem item in results) { Results.Add(item.ToString()); } var items = CCMenu.All(); var Items = new List <string>(); foreach (IOrderItem item in items) { Items.Add(item.ToString()); } foreach (string item in Items) { Assert.Contains(item, Results); } }