Exemplo n.º 1
0
        public void New_Builder_Should_Support_Multiple_Attributes()
        {
            var attrs = new List <KeyValuePair <string, string> > ()
            {
                new KeyValuePair <string, string>("attrOne", "Value One"),
                new KeyValuePair <string, string>("attrTwo", "Another value")
            };

            _builder = new Builder("TestRootElement", attrs);

            var data      = _builder.XmlData.Elements().First();
            var attrCount = data.Attributes().Count();

            Assert.AreEqual(2, attrCount);
        }
Exemplo n.º 2
0
 public void TearDown()
 {
     _builder = null;
 }
Exemplo n.º 3
0
 public void SetUp()
 {
     _builder = new Builder("TestRootElement");
 }