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;
}