Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            
            XmlMarkupBuilder markupBuilder = new XmlMarkupBuilder();

            markupBuilder.OpenTag("xml").AddAttr("name", "Simo").AddText("tries to programm").CloseTag().OpenTag("title").Finish();
            Console.WriteLine(markupBuilder);
            
        }
        public void openTagTest()
        {
            //Arrange
            var builder = new XmlMarkupBuilder();

            //Act
            string tag = "alabala";
            builder.OpenTag(tag);

            //Assert
            //Assert.IsTrue(tag == builder.Tag);
        }