public void RegressionTest8()
{
try
{
DynamicMethod hello = new DynamicMethod("Hello",
typeof(int),
new Type[] { },
typeof(string).GetTypeInfo().Module);
ILGenerator il = hello.GetILGenerator(256);
il.Emit(OpCodes.Ret);
// Load into XslCompiledTransform
var xslt = new XslCompiledTransform();
xslt.Load(hello, new byte[] { }, new Type[] { });
// Run the transformation
Stream res = new MemoryStream();
xslt.Transform(XmlReader.Create(new StringReader("<Root><Price>9.50</Price></Root>")), (XsltArgumentList)null, res);
}
catch (ArgumentException)
{
return;
}
catch (Exception e)
{
_output.WriteLine(e.ToString());
}
Assert.True(false);
}