private void AssertPageCount(Bloom.Book.Book book, int expectedCount) { var result = book.RawDom.StripXHtmlNameSpace(); AssertThatXmlIn.Dom(result).HasSpecifiedNumberOfMatchesForXpath("//div[contains(@class, 'bloom-page')]", expectedCount); }