public int lookupPrefix_1()
{
using (XmlWriter w = CreateWriter())
{
try
{
w.WriteStartElement("Root");
string s = w.LookupPrefix(null);
w.Dispose();
}
catch (ArgumentException e)
{
CError.WriteLineIgnore("Exception: " + e.ToString());
CheckErrorState(w.WriteState);
return TEST_PASS;
}
}
CError.WriteLine("Did not throw exception");
return TEST_FAIL;
}