public void WithNullEventAttributeExpressionReturnsCorrectly()
        {
            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.Events( null );

            Assert.AreSame( builder, result );
            Assert.AreEqual( 0, builder.Attributes.Count );
        }
        public void AddsEventAttributeCorrectly()
        {
            string name = "Name";
            string value = "Value";

            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.Events( x => x.Event( name, value ) );

            Assert.AreSame( builder, result );
            Assert.AreEqual( value, builder.Attributes[ name ] );
        }