public void AddsAttributeCorrectly()
        {
            string form = "Form";

            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.AddForm( form );

            Assert.AreSame( builder, result );

            AttributeValueCollection attributeValues = builder.Attributes[ HtmlAttributes.Form ] as AttributeValueCollection;

            Assert.IsNotNull( attributeValues );
            Assert.AreEqual( form, attributeValues[ 0 ] );
        }
        public void WithMultipleClassesAddsAttributeCorrectly()
        {
            string[] forms = new string[]
            {
                "Form1",
                "Form2"
            };

            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.AddForm( forms );

            Assert.AreSame( builder, result );

            AttributeValueCollection attributeValues = builder.Attributes[ HtmlAttributes.Form ] as AttributeValueCollection;

            Assert.IsNotNull( attributeValues );
            CollectionAssert.AreEquivalent( forms, attributeValues );
        }