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