public int attribute_13()
{
using (XmlWriter w = CreateWriter())
{
try
{
w.WriteStartElement("Root");
w.WriteAttributeString("xml", "space", "http://www.w3.org/XML/1998/namespace", "invalid");
}
catch (ArgumentException e)
{
CError.WriteLineIgnore("Exception: " + e.ToString());
CError.Compare(w.WriteState, WriteState.Error, "WriteState should be Error");
return TEST_PASS;
}
}
CError.WriteLine("Did not throw exception");
return TEST_FAIL;
}