public void WithRelTypeValueAddsAttributeCorrectly() { RelType rel = RelType.Alternate; HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.Rel( rel ); Assert.AreSame( builder, result ); Assert.AreEqual( rel.ToString().ToLower(), builder.Attributes[ HtmlAttributes.Rel ] ); }
public void AddsAttributeCorrectly() { string rel = "Alternate"; HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.Rel( rel ); Assert.AreSame( builder, result ); Assert.AreEqual( rel, builder.Attributes[ HtmlAttributes.Rel ] ); }