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

surrogateEntity_8() public méthode

public surrogateEntity_8 ( ) : int
Résultat int
            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=\"&#x10FC00;\" />";
                return CompareReader(strExp) ? TEST_PASS : TEST_FAIL;
            }
        }