public async Task Should_Get_All_Pages() { List <WikiPage> pages = (List <WikiPage>) await redmineManager.GetAllWikiPagesAsync(null, projectId); Assert.IsNotNull(pages, "Get pages returned null."); CollectionAssert.AllItemsAreNotNull(pages, "Pages contains null elements."); CollectionAssert.AllItemsAreUnique(pages, "Wiki pages are not unique."); Assert.IsTrue(pages.Count == noOfWikiPages, "Number of pages != " + noOfWikiPages); Assert.IsTrue(pages.Exists(p => p.Title == wikiPageName), "Wiki page " + wikiPageName + " does not exist."); }