public void Is_Passed_An_Object_Of_Heading_Then_Render_Returns_The_Html(HeadingControlRenderer renderer) { var heading = new Heading { HeadingSize = 2 }; heading.Content.Add("a heading"); var actual = renderer.Render(heading); actual.Value.Should().NotBeNullOrWhiteSpace(); actual.Value.Should().Be("<h2>a heading</h2>"); }
public void Is_Passed_An_Object_Of_IHtmlControl_That_Is_Not_Of_Heading_Then_Supports_Content_Returns_False(Table table, HeadingControlRenderer renderer) { var actual = renderer.SupportsContent(table); actual.Should().BeFalse(); }
public void Is_Passed_An_Object_Of_IHtmlControl_That_Is_Of_Heading_Then_Supports_Content_Returns_True(Heading heading, HeadingControlRenderer renderer) { var actual = renderer.SupportsContent(heading); actual.Should().BeTrue(); }