public void AddsAttributeCorrectly() { HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.Wrap(); Assert.AreSame( builder, result ); Assert.AreEqual( WrapType.Hard.ToString().ToLower(), builder.Attributes[ HtmlAttributes.Wrap ] ); }
public void WithSpecifiedValueAddsAttributeCorrectly() { WrapType value = WrapType.Hard; HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.Wrap( value ); Assert.AreSame( builder, result ); Assert.AreEqual( value.ToString().ToLower(), builder.Attributes[ HtmlAttributes.Wrap ] ); }