public void AddsAttributeCorrectly()
        {
            string url = "http://www.example.com";

            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.Src( url );

            Assert.AreSame( builder, result );
            Assert.AreEqual( url, builder.Attributes[ HtmlAttributes.Src ] );
        }
        public void WithRelativeUriValueAddsAttributeCorrectly()
        {
            string urlAsString = "/Relative/Path";
            Uri url = new Uri( urlAsString, UriKind.Relative );

            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.Src( url );

            Assert.AreSame( builder, result );
            Assert.AreEqual( url.OriginalString, builder.Attributes[ HtmlAttributes.Src ] );
        }
        public void WithAbsoluteUriValueAddsAttributeCorrectly()
        {
            string urlAsString = "http://www.example.com";
            Uri url = new Uri( urlAsString, UriKind.Absolute );

            HtmlAttributeBuilder builder = new HtmlAttributeBuilder();
            var result = builder.Src( url );

            Assert.AreSame( builder, result );
            Assert.AreEqual( url.OriginalString, builder.Attributes[ HtmlAttributes.Src ] );
        }