public void LoadGeneric2()
{
if (LoadXSL("showParam.xsl") == 1)
{
try
{
LoadXSL("IDontExist.xsl");
}
catch (System.IO.FileNotFoundException)
{
try
{
Transform("fruits.xml");
}
catch (System.InvalidOperationException e)
{
CheckExpectedError(e, "System.Xml", "Xslt_NoStylesheetLoaded", new string[] { "" });
return;
}
}
}
else
{
_output.WriteLine("Failed to load style sheet!");
Assert.True(false);
}
Assert.True(false);
}