Ejemplo n.º 1
0
        public void CheckGroupingItemByYear()
        {
            var groupedCatalogByYear = Sorter.GroupByYear;
            var resultGrouping       = Sorter.Sort(groupedCatalogByYear, DataToTest.GetDataToSearchOrSort());

            Assert.IsTrue(TestLibrary.CountOfGroup(resultGrouping) == TestLibrary.CountOfGroupForYear);
        }
Ejemplo n.º 2
0
        public void CheckGroupingBookByPublisher()
        {
            var seacher = Searcher.GroupBooksByPublisher;
            var books   = Searcher.Search(seacher, PublisherForGrouping, DataToTest.OnlyBook());

            Assert.IsTrue(TestLibrary.CountOfGroup(books) == TestLibrary.CountOfGroupForPublisher);
        }