private TestTemplateInsertion ( Bloom book, IPage existingPage, string divContent ) : void | ||
book | Bloom | |
existingPage | IPage | |
divContent | string | |
Результат | void |
private void TestTemplateInsertion(Bloom.Book.Book book, IPage existingPage, string divContent)
{
Mock<IPage> templatePage = CreateTemplatePage(divContent);
book.InsertPageAfter(existingPage, templatePage.Object);
AssertPageCount(book, 4);
Assert.AreEqual("bloom-page somekind A5Portrait", GetPageFromBookDom(book, 1).GetStringAttribute("class"));
}