public void EmptyElementWithAttributesIsClosed()
        {
            var html      = "<div><img src=\"http://example.org/example.jpg\"></div>";
            var formatter = new CloseEmptyElementsFormatter();

            html = formatter.FormatHtml(html);

            Assert.AreEqual("<div><img src=\"http://example.org/example.jpg\" /></div>", html);
        }
        public void EmptyElementWithoutAttributesIsClosed()
        {
            var html      = "<div><br></div>";
            var formatter = new CloseEmptyElementsFormatter();

            html = formatter.FormatHtml(html);

            Assert.AreEqual("<div><br /></div>", html);
        }