System.Xml.Tests.TCFullEndElement.TCWriteChars.writeChars_1 C# (CSharp) Méthode

writeChars_1() public méthode

public writeChars_1 ( ) : int
Résultat int
            public int writeChars_1()
            {
                using (XmlWriter w = CreateWriter())
                {
                    string s = "test the buffer";
                    char[] buf = s.ToCharArray();
                    w.WriteStartElement("Root");
                    w.WriteChars(buf, 0, 4);
                    w.WriteEndElement();
                }
                return CompareReader("<Root>test</Root>") ? TEST_PASS : TEST_FAIL;
            }