public int surrogateEntity_4() { using (XmlWriter w = CreateWriter()) { w.WriteStartElement("Root"); w.WriteSurrogateCharEntity('\uDD12', '\uDA34'); w.WriteEndElement(); } return CompareReader("<Root>򝄒</Root>") ? TEST_PASS : TEST_FAIL; }