public int surrogateEntity_8()
{
using (XmlWriter w = CreateWriter())
{
w.WriteStartElement("root");
w.WriteStartAttribute("xml", "lang", null);
w.WriteSurrogateCharEntity('\uDC00', '\uDBFF');
w.WriteEndAttribute();
w.WriteEndElement();
}
string strExp = "<root xml:lang=\"􏰀\" />";
return CompareReader(strExp) ? TEST_PASS : TEST_FAIL;
}
}