示例#1
0
        public void TestSequence_equal()
        {
            var products        = RepositoryFactory.GetProducts();
            var anotherProducts = RepositoryFactory.GetProducts();

            Assert.True(WithoutLinq.CashSequence(products, anotherProducts, new MyCompareProduct()));
            Assert.True(products.CashSequence(anotherProducts, new MyCompareProduct()));
        }
示例#2
0
        public void TestSequence_source_more_than_one()
        {
            var products        = RepositoryFactory.GetProductsS();
            var anotherProducts = RepositoryFactory.GetProducts();

            Assert.False(WithoutLinq.CashSequence(products, anotherProducts, new MyCompareProduct()));
            Assert.False(products.CashSequence(anotherProducts, new MyCompareProduct()));
        }
示例#3
0
        public void TestSequence_item_have_one_not_equal()
        {
            var products        = RepositoryFactory.GetProducts();
            var anotherProducts = RepositoryFactory.GetAnotherProducts();

            Assert.False(WithoutLinq.CashSequence(products, anotherProducts, new MyCompareProduct()));
            Assert.False(products.CashSequence(anotherProducts, new MyCompareProduct()));
        }