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

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

            Assert.AreSame( builder, result );
            Assert.AreEqual( HtmlAttributes.IsMap, builder.Attributes[ HtmlAttributes.IsMap ] );
        }
        public void WithTrueAddsAttributeCorrectly()
        {
            bool value = true;

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

            Assert.AreSame( builder, result );
            Assert.AreEqual( HtmlAttributes.IsMap, builder.Attributes[ HtmlAttributes.IsMap ] );
        }
        public void WithFalseDoesNotAddAttribute()
        {
            bool value = false;

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

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