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"); }
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"); }