public void CheckSearchBookByAuthor() { var seacher = Searcher.GetBookByAuthor; var booksbyAuthor = Searcher.Search(seacher, TestLibrary.SearchByAuthor, DataToTest.OnlyBook()); Assert.IsTrue(booksbyAuthor.Count == TestLibrary.CountBookByAuthor); }
public void CheckGroupingBookByPublisher() { var seacher = Searcher.GroupBooksByPublisher; var books = Searcher.Search(seacher, PublisherForGrouping, DataToTest.OnlyBook()); Assert.IsTrue(TestLibrary.CountOfGroup(books) == TestLibrary.CountOfGroupForPublisher); }