public void AddsAttributeCorrectly() { HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.ContentEditable(); Assert.AreSame( builder, result ); Assert.AreEqual( ContentEditableType.True.ToString().ToLower(), builder.Attributes[ HtmlAttributes.ContentEditable ] ); }
public void WithSpecifiedValueAddsAttributeCorrectly() { ContentEditableType value = ContentEditableType.False; HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.ContentEditable( value ); Assert.AreSame( builder, result ); Assert.AreEqual( value.ToString().ToLower(), builder.Attributes[ HtmlAttributes.ContentEditable ] ); }