Exemplo n.º 1
0
        public void ElementValueTest()
        {
            var content  = string.Format(ProjectTemplate, "<p>abc</p>");
            var document = XDocument.Parse(content);

            var projectModel = new PomDocument(document);

            Assert.That(projectModel.RootElement.ReadElementValueOrNull("p"), Is.EqualTo("abc"));
        }
Exemplo n.º 2
0
        public void EmptyPomTest()
        {
            var content  = string.Format(ProjectTemplate, string.Empty);
            var document = XDocument.Parse(content);

            var projectModel = new PomDocument(document);

            Assert.That(projectModel.RootElement.Value, Is.Empty);
        }