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

charEntity_2() public méthode

public charEntity_2 ( ) : int
Résultat int
            public int charEntity_2()
            {
                using (XmlWriter w = CreateWriter())
                {
                    w.WriteStartElement("Root");
                    w.WriteCharEntity('\uD001');
                    w.WriteStartElement("elem");
                    w.WriteCharEntity('\uF345');
                    w.WriteEndElement();
                    w.WriteCharEntity('\u0048');
                    w.WriteEndElement();
                }
                return CompareReader("<Root>&#xD001;<elem>&#xF345;</elem>&#x48;</Root>") ? TEST_PASS : TEST_FAIL;
            }