public void Should_render_encoded_text() { const string text = "<span>"; item.Text = text; IHtmlNode tag = builder.ItemInnerContent(item).Children.Last(); Assert.Equal("<span>", tag.InnerHtml); }
public void Should_render_selected_class_if_it_is_enabled_and_item_is_selected() { item.Enabled = true; item.Selected = true; IHtmlNode tag = renderer.ItemInnerContent(item); Assert.Equal("t-in t-state-selected", tag.Attribute("class")); }