public int docType_3()
{
using (XmlWriter w = CreateWriter())
{
try
{
w.WriteDocType("doc1", null, null, "<!ENTITY e 'abc'>");
w.WriteDocType("doc2", null, null, "<!ENTITY f 'abc'>");
}
catch (InvalidOperationException e)
{
CError.WriteLineIgnore(e.ToString());
CError.Compare(w.WriteState, WriteState.Error, "WriteState should be Error");
return TEST_PASS;
}
}
CError.WriteLine("Did not throw exception");
return TEST_FAIL;
}