System.Xml.Tests.TCFullEndElement.TCCharEntity.charEntity_1 C# (CSharp) Méthode

charEntity_1() public méthode

public charEntity_1 ( ) : int
Résultat int
            public int charEntity_1()
            {
                using (XmlWriter w = CreateWriter())
                {
                    w.WriteStartElement("Root");
                    w.WriteStartAttribute("a");
                    w.WriteCharEntity('\uD23E');
                    w.WriteEndAttribute();
                    w.WriteCharEntity('\uD7FF');
                    w.WriteCharEntity('\uE000');
                    w.WriteEndElement();
                }
                return CompareReader("<Root a=\"&#xD23E;\">&#xD7FF;&#xE000;</Root>") ? TEST_PASS : TEST_FAIL;
            }