public void CheckGroupingItemByYear() { var groupedCatalogByYear = Sorter.GroupByYear; var resultGrouping = Sorter.Sort(groupedCatalogByYear, DataToTest.GetDataToSearchOrSort()); Assert.IsTrue(TestLibrary.CountOfGroup(resultGrouping) == TestLibrary.CountOfGroupForYear); }
public void CheckGroupingBookByPublisher() { var seacher = Searcher.GroupBooksByPublisher; var books = Searcher.Search(seacher, PublisherForGrouping, DataToTest.OnlyBook()); Assert.IsTrue(TestLibrary.CountOfGroup(books) == TestLibrary.CountOfGroupForPublisher); }