public void WithDirTypeValueAddsAttributeCorrectly() { DirType value = DirType.Ltr; HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.Dir( value ); Assert.AreSame( builder, result ); Assert.AreEqual( value.ToString().ToLower(), builder.Attributes[ HtmlAttributes.Dir ] ); }
public void AddsAttributeCorrectly() { string value = "Value"; HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.Dir( value ); Assert.AreSame( builder, result ); Assert.AreEqual( value, builder.Attributes[ HtmlAttributes.Dir ] ); }