예제 #1
0
        public void BuildsTitleWithTitle()
        {
            var title = new TitleElem { Title = "Application Title" };

            var html = title.Html;

            var expected = "<title>Application Title</title>";

            Assert.AreEqual(expected, html);
        }
예제 #2
0
        public void BuildsEmptyTitle()
        {
            var title = new TitleElem();

            var html = title.Html;

            var expected = "<title></title>";

            Assert.AreEqual(expected, html);
        }