public void find_products_that_price_between_200_and_500() { var products = RepositoryFactory.GetProducts(); var actual = WithoutLinq.FindProductByPrice(products, 200, 500); var expected = new List <Product>() { //todo }; expected.ToExpectedObject().ShouldEqual(actual); }
public void find_products_that_price_between_200_and_500() { var products = RepositoryFactory.GetProducts(); var actual = WithoutLinq.FindProductByPrice(products, 200, 500, "Odd-e"); var expected = new List <Product>() { new Product { Id = 3, Cost = 31, Price = 310, Supplier = "Odd-e" }, new Product { Id = 4, Cost = 41, Price = 410, Supplier = "Odd-e" } }; expected.ToExpectedObject().ShouldEqual(actual); }