public int CData_13()
{
char ch = (char)(int)CurVariation.Params[0];
NewLineHandling nlh = (NewLineHandling)CurVariation.Params[1];
string expXml = (string)CurVariation.Params[2];
XmlWriterSettings xws = new XmlWriterSettings();
xws.OmitXmlDeclaration = true;
xws.NewLineHandling = nlh;
using (XmlWriter w = CreateWriter(xws))
{
w.WriteStartElement("r");
w.WriteCData(new string(ch, 1));
w.WriteEndElement();
}
return CompareString(expXml) ? TEST_PASS : TEST_FAIL;
}
}