Castle.MonoRail.Framework.Tests.ViewComponents.DiggStylePaginationTestCase.PageWithLinksPrintsLinks C# (CSharp) Method

PageWithLinksPrintsLinks() private method

private PageWithLinksPrintsLinks ( ) : void
return void
		public void PageWithLinksPrintsLinks()
		{
			SectionRender["startblock"] = delegate(IDictionary context, TextWriter writer) { writer.Write("started"); };
			SectionRender["endblock"] = delegate(IDictionary context, TextWriter writer) { writer.Write("ended"); };
			SectionRender["link"] = delegate(IDictionary context, TextWriter writer)
			{
				writer.Write(" {0} {1} {2} ", context["pageIndex"], context["url"], context["text"]);
			};

			diggComponent.UseInlineStyle = false;
			diggComponent.Page = secondPageOfThree;
			PrepareViewComponent(diggComponent);
			diggComponent.Render();

			Assert.AreEqual("started 1  &laquo; prev  1  1 \r\n<span class=\"current\">2</span>\r\n 3  3  3  next &raquo; ended", Output);
		}