public int xmlSpace_7()
{
using (XmlWriter w = CreateWriter())
{
try
{
w.WriteStartElement("Root");
w.WriteStartElement("node", null);
w.WriteAttributeString("xml", "space", null, "reserve");
}
catch (ArgumentException e)
{
CError.WriteLineIgnore(e.ToString());
CError.Compare(w.WriteState, WriteState.Error, "WriteState should be Error");
return TEST_PASS;
}
}
CError.WriteLine("Exception expected");
return TEST_FAIL;
}