static int Main (string [] args)
{
IFoo foo = EmitFoo ();
try {
foo.Bar ();
return 1;
} catch (Exception ex) {
#if MONO
Assert.IsTrue (ex.StackTrace.IndexOf (DocumentPath + ":10") != -1, ex.StackTrace);
#else
Assert.IsTrue (ex.StackTrace.IndexOf (DocumentPath + ":line 10") != -1, ex.StackTrace);
#endif
return 0;
}
}