public int writeString_4()
{
using (XmlWriter w = CreateWriter())
{
try
{
w.WriteStartElement("Root");
w.WriteString("\uD812");
w.WriteEndElement();
}
catch (ArgumentException e)
{
CError.WriteLineIgnore("Exception: " + e.ToString());
CheckErrorState(w.WriteState);
return TEST_PASS;
}
}
CError.WriteLine("Did not throw exception");
return TEST_FAIL;
}