public int var_5()
{
int testResult = TEST_FAIL;
using (Stream tfs = new MemoryStream())
{
try
{
XmlWriterSettings ws = new XmlWriterSettings();
ws.CloseOutput = true;
XmlWriter w = WriterHelper.Create(tfs, ws);
w.WriteElementString("foo", "bar");
w.Dispose();
CError.WriteLine("expected exception wasn't thrown");
return TEST_FAIL;
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
testResult = TEST_PASS;
}
return testResult;
}