Ejemplo n.º 1
0
        public void InnerTextDerived()
        {
            bool gotException = false;
            try
            {
                XmlTextDerived test = new XmlTextDerived() { ThisShouldBeInner = "Test1" };
                var result = XmlSerializer<XmlTextDerived>.New().SerializeToString(test);

            }
            catch (Exception)
            {

                gotException = true;
            }

            Assert.IsFalse(gotException, "This should be valid");
        }
Ejemplo n.º 2
0
        public void InnerTextDerived()
        {
            bool gotException = false;

            try
            {
                XmlTextDerived test = new XmlTextDerived()
                {
                    ThisShouldBeInner = "Test1"
                };
                var result = XmlSerializer <XmlTextDerived> .New().SerializeToString(test);
            }
            catch (Exception)
            {
                gotException = true;
            }

            Assert.IsFalse(gotException, "This should be valid");
        }