public int writeChars_2()
{
using (XmlWriter w = CreateWriter())
{
string s = "&<>theend";
char[] buf = s.ToCharArray();
w.WriteStartElement("Root");
w.WriteChars(buf, 0, 5);
w.WriteEndElement();
}
return CompareReader("<Root>&<>th</Root>") ? TEST_PASS : TEST_FAIL;
}