public void AddParam17()
{
int i = 1;
int errCount = 0;
m_xsltArg = new XsltArgumentList();
foreach (String str in szWhiteSpace)
{
try
{
m_xsltArg.AddParam("myArg" + i, szEmpty, "Test" + str);
}
catch (System.Xml.XmlException)
{
_output.WriteLine("Improperly reported an exception for a whitespace value");
Assert.True(false);
}
i++;
}
foreach (String str in szWhiteSpace)
{
try
{
m_xsltArg.AddParam("myArg" + str, szEmpty, "Test");
}
catch (System.Xml.XmlException)
{
errCount++;
}
finally
{
errCount--;
}
}
if (errCount != 0)
{
_output.WriteLine("At least one whitespace test failed.");
Assert.True(false);
}
if ((LoadXSL("showParam.xsl") == 1) && (Transform_ArgList("fruits.xml") == 1) &&
(CheckResult(420.7138852814) == 1))
return;
else
Assert.True(false);
}