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

charEntity_8() public méthode

public charEntity_8 ( ) : int
Résultat int
            public int charEntity_8()
            {
                using (XmlWriter w = CreateWriter())
                {
                    w.WriteStartElement("root");
                    w.WriteStartAttribute("xml", "lang", null);
                    w.WriteCharEntity('A');
                    w.WriteString("\n");
                    w.WriteEndAttribute();
                    w.WriteEndElement();
                }
                return CompareReader("<root xml:lang=\"A&#xA;\" />") ? TEST_PASS : TEST_FAIL;
            }