public void PageWithNoLinksInvokesStartAndEndSections()
{
List<string> actions = new List<string>();
SectionRender["startblock"] = delegate(IDictionary context, TextWriter writer) { actions.Add("started"); };
SectionRender["endblock"] = delegate(IDictionary context, TextWriter writer) { actions.Add("ended"); };
SectionRender["link"] = delegate(IDictionary context, TextWriter writer) { actions.Add("link"); };
diggComponent.Page = singlePage;
PrepareViewComponent(diggComponent);
diggComponent.Render();
Assert.AreEqual(2, actions.Count);
Assert.AreEqual("started", actions[0]);
Assert.AreEqual("ended", actions[1]);
}