public void ShouldReturnExpectedBooks() { var expectedItems = BookBuilder.Books.OrderBy(a => a.Title).Take(12).ToArray(); _assert.ShouldHaveItems(12); for (int i = 0; i < _assert.Data.Count(); i++) { var actual = _assert.Data.ElementAt(i); var expected = expectedItems[i]; actual.ShouldMatch(expected, DatabaseConnection, LibraryId) .InLibrary(LibraryId) .ShouldHaveCorrectLinks() .ShouldNotHaveEditLinks() .ShouldNotHaveImageUpdateLink() .ShouldNotHaveCreateChaptersLink() .ShouldNotHaveAddContentLink() .ShouldHaveChaptersLink() .ShouldNotHaveAddFavoriteLink() .ShouldHavePublicImageLink(); } }