public int writeNmToken_1()
{
using (XmlWriter w = CreateWriter())
{
try
{
w.WriteStartElement("root");
string temp;
if (CurVariation.Param.ToString() == "null")
temp = null;
else
temp = String.Empty;
w.WriteNmToken(temp);
w.WriteEndElement();
}
catch (ArgumentException e)
{
CError.WriteLineIgnore(e.ToString());
CheckElementState(w.WriteState);//by design 396962
return TEST_PASS;
}
}
CError.WriteLine("Did not throw exception");
return TEST_FAIL;
}