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

charEntity_3() public méthode

public charEntity_3 ( ) : int
Résultat int
            public int charEntity_3()
            {
                using (XmlWriter w = CreateWriter())
                {
                    w.WriteStartElement("Root");
                    w.WriteStartAttribute("a");
                    w.WriteCharEntity('\u1289');
                    w.WriteEndAttribute();
                    w.WriteCharEntity('\u2584');
                    w.WriteEndElement();
                }
                return CompareReader("<Root a=\"&#x1289;\">&#x2584;</Root>") ? TEST_PASS : TEST_FAIL;
            }