public void VerifyTheCheapestProductsFromTheShoppingCart() { Shopping.ShoppingCart[] cheapestProductsExpected = new Shopping.ShoppingCart[] { new Shopping.ShoppingCart { product = "apples", price = 3 }, new Shopping.ShoppingCart { product = "pears", price = 3 } }; Shopping.ShoppingCart[] cheapestProducts = Shopping.ReturnCheapestProducts(cart); Assert.AreEqual(cheapestProductsExpected.Length, cheapestProducts.Length); CollectionAssert.AreEqual(cheapestProductsExpected, cheapestProducts); }