public void FormLookupData_Columns()
        {
            Object actual   = lookup.FormLookupData(lookup.GetModels(), new[] { new TestModel() }.AsQueryable(), lookup.GetModels()).Columns;
            Object expected = lookup.Columns;

            Assert.Same(expected, actual);
        }
Пример #2
0
        public void FormLookupData_FilteredRows()
        {
            Int32 actual   = lookup.FormLookupData(lookup.GetModels()).FilteredRows;
            Int32 expected = lookup.GetModels().Count();

            Assert.Equal(expected, actual);
        }
Пример #3
0
        public void FormLookupData_FilteredRows()
        {
            lookup.Filter.TotalRows = 140;

            Int32 actual   = lookup.FormLookupData(lookup.GetModels(), new[] { new TestModel() }.AsQueryable(), lookup.GetModels().Take(1)).FilteredRows;
            Int32 expected = lookup.Filter.TotalRows;

            Assert.Equal(expected, actual);
        }