public void AddsAttributeCorrectly()
        {
            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.AutoComplete();

            Assert.AreSame( builder, result );

            Assert.AreEqual( AutoCompleteType.On.ToString().ToLower(), builder.Attributes[ HtmlAttributes.AutoComplete ] );
        }
        public void WithBooleanValueTrueAddsAttributeCorrectly()
        {
            bool value = true;

            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.AutoComplete( value );

            Assert.AreSame( builder, result );

            Assert.AreEqual( AutoCompleteType.On.ToString().ToLower(), builder.Attributes[ HtmlAttributes.AutoComplete ] );
        }
        public void WithAutoCompleteTypeValueAddsAttributeCorrectly()
        {
            AutoCompleteType value = AutoCompleteType.On;

            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.AutoComplete( value );

            Assert.AreSame( builder, result );

            Assert.AreEqual( value.ToString().ToLower(), builder.Attributes[ HtmlAttributes.AutoComplete ] );
        }