public void AddsAttributeCorrectly() { int value = 1; HtmlAttributeBuilder builder = new HtmlAttributeBuilder(); var result = builder.MaxLength( value ); Assert.AreSame( builder, result ); Assert.AreEqual( value, builder.Attributes[ HtmlAttributes.MaxLength ] ); }