public void SerializeToXmlElement_Escaped() { // Special characters should be escaped XmlNode node = TestClientSettingsView.TestSerializeToXmlElement("<Foo>"); node.Should().NotBeNull(); node.InnerXml.Should().Be("<Foo>"); }
public void SerializeToXmlElement_Null() { // Null should be treated as empty string XmlNode node = TestClientSettingsView.TestSerializeToXmlElement(null); node.Should().NotBeNull(); node.InnerXml.Should().Be(String.Empty); }