Ejemplo n.º 1
0
        public void TestElementWithExtraAttributes()
        {
            var elem = new Redirect();

            elem.SetOption("newParam1", "value");
            elem.SetOption("newParam2", 1);

            Assert.AreEqual(
                "<?xml version=\"1.0\" encoding=\"utf-8\"?>" + Environment.NewLine +
                "<Redirect newParam1=\"value\" newParam2=\"1\"></Redirect>",
                elem.ToString()
                );
        }