Exemplo n.º 1
0
		public void should_remove_jumbotron_tag_from_markup()
		{
			// Arrange
			string markup = "Here is some ===Heading 1=== markup \n[[[jumbotron=\n==Welcome==\n==This the subheading==]]]";
			Jumbotron jumbotron = new Jumbotron(_container.MarkupConverter);

			// Act
			string actualMarkup = jumbotron.BeforeParse(markup);

			// Assert
			Assert.That(actualMarkup, Is.EqualTo("Here is some ===Heading 1=== markup \n"));
		}
Exemplo n.º 2
0
		public void should_parse_and_fill_precontainerhtml()
		{
			// Arrange
			string markup = "Here is some ===Heading 1=== markup \n[[[jumbotron==Welcome=\n==This the subheading==]]]";
			string expectedHtml = Jumbotron.HTMLTEMPLATE.Replace("${inner}", "<p><h1>Welcome</h1><h2>This the subheading</h2></p>");

			Jumbotron jumbotron = new Jumbotron(_container.MarkupConverter);

			// Act
			jumbotron.BeforeParse(markup);
			string actualHtml = jumbotron.GetPreContainerHtml();

			// Assert
			Assert.That(actualHtml, Is.EqualTo(expectedHtml));
		}