public void SetContentTest(string value, bool escapeValue, string excpectedValue) { XmlAttribute attribute = new XmlAttribute("att"); attribute.SetContent(value, escapeValue); Assert.That(attribute.Value, Is.EqualTo(excpectedValue)); }
public void GetXmlStringTest(string name, string value, bool escapeValue, string excpectedString) { XmlAttribute attribute = new XmlAttribute(name); attribute.SetContent(value, escapeValue); StringBuilder sb = new StringBuilder(); attribute.AppendXmlString(sb); Assert.That(sb.ToString(), Is.EqualTo(excpectedString)); }