public void ItemsShouldContaonOnlyAddedItems() { var items = new IOrderItem[] { new MockOrderItem() { Price = 4 }, new MockOrderItem() { Price = 5 }, new MockOrderItem() { Price = 7 } }; var order = new Order(); foreach (var item in items) { order.Add(item); } Assert.Equal(items.Count(), order.Items.Count()); foreach (var item in items) { Assert.Contains(item, order.Items); } }