public void WithFalseRemovesAttributeIfPresent()
        {
            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.Hidden( true ).Hidden( false );

            Assert.AreSame( builder, result );
            Assert.IsFalse( builder.Attributes.ContainsKey( HtmlAttributes.Hidden ) );
        }
        public void WithTrueAddsAttributeCorrectly()
        {
            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.Hidden( true );

            Assert.AreSame( builder, result );
            Assert.AreEqual( HtmlAttributes.Hidden, builder.Attributes[ HtmlAttributes.Hidden ] );
        }
        public void WithFalseDoesNotAddAttribute()
        {
            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.Hidden( false );

            Assert.AreSame( builder, result );
            Assert.IsFalse( builder.Attributes.ContainsKey( HtmlAttributes.Hidden ) );
        }