public void WithShapeTypeValueAddsAttributeCorrectly() { ShapeType value = ShapeType.Circle; HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.Shape( value ); Assert.AreSame( builder, result ); Assert.AreEqual( value.ToString().ToLower(), builder.Attributes[ HtmlAttributes.Shape ] ); }
public void AddsAttributeCorrectly() { string value = "Value"; HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.Shape( value ); Assert.AreSame( builder, result ); Assert.AreEqual( value, builder.Attributes[ HtmlAttributes.Shape ] ); }