System.Xml.Tests.TCFullEndElement.TCSurrogateCharEntity.surrogateEntity_1 C# (CSharp) Méthode

surrogateEntity_1() public méthode

public surrogateEntity_1 ( ) : int
Résultat int
            public int surrogateEntity_1()
            {
                using (XmlWriter w = CreateWriter())
                {
                    w.WriteStartElement("Root");
                    w.WriteSurrogateCharEntity('\uDF41', '\uD920');
                    w.WriteStartElement("Elem");
                    w.WriteSurrogateCharEntity('\uDE44', '\uDAFF');
                    w.WriteEndElement();
                    w.WriteSurrogateCharEntity('\uDC22', '\uD820');
                    w.WriteEndElement();
                }
                return CompareReader("<Root>&#x58341;<Elem>&#xCFE44;</Elem>&#x18022;</Root>") ? TEST_PASS : TEST_FAIL;
            }