public void AddTWoAttributes_ToString_TagWithAttributes()
        {
            Div d = new Div();
            d.AddAttribute("first", "val1");
            d.AddAttribute("second", "val2");
            string html = d.ToString();

            string expected = "<div first=\"val1\" second=\"val2\"></div>";
            Assert.AreEqual(expected, html);
        }
        public void AddAttribute_ToString_TagWithAttribute()
        {
            Div d = new Div();
            d.AddAttribute("attname", "val");
            string html = d.ToString();

            string expected = "<div attname=\"val\"></div>";
            Assert.AreEqual(expected, html);
        }
        public void AddClassAddAttribute_ToString_TagWithClassesAndAttributes()
        {
            Div d = new Div();
            d.AddClass("one");
            d.AddAttribute("first", "val1");
            string html = d.ToString();

            string expected = "<div class=\"one\" first=\"val1\"></div>";
            Assert.AreEqual(expected, html);
        }