Esempio n. 1
0
        public void GetProductWithSpecifiedTitleTest()
        {
            List <Product> products = new List <Product>
            {
                new Product("CommonName", 201),
                new Product("CommonName", 202),
                new Product("VeryCommonName", 202),
                new Product("SpecialName", 203),
                new Product("SpecialName", 203),
            };

            foreach (var product in DataLinqFilter.GetProductWithSpecifiedTitle(products, "SpecialName"))
            {
                Assert.AreEqual("SpecialName", product.Name);
            }
        }