コード例 #1
0
        public void GetLcsTestBooleanTrueFunction()
        {
            var testProvider = new TestLcsQueryProvider <Кошка>();

            // ReSharper disable NegativeEqualityExpression
            new Query <Кошка>(testProvider).Where(o => true).ToList();
            // ReSharper restore NegativeEqualityExpression
            Expression queryExpression = testProvider.InnerExpression;
            var        lf       = UtilsLcs.GetTrueFunc();
            var        expected = new LoadingCustomizationStruct(null)
            {
                LimitFunction = lf
            };

            LoadingCustomizationStruct actual = LinqToLcs.GetLcs(queryExpression, Utils.GetDefaultView(typeof(Кошка)));

            Assert.True(Equals(expected, actual));
        }