public async Task RunMainTestCase() { var ignored = await runProgram( "class MeowException(Exception):\n" + " def __init__(self, number):\n" + " self.number = number\n" + "\n" + "def meow_loudly():\n" + " raise MeowException(1)\n" + "\n" + "meow_loudly()\n", new Dictionary <string, object>(), 1, false); escaped = (EscapedPyException)ignored.EscapedDotNetException; }
public void RunMainTestCase() { try { var ignored = runProgram( "class MeowException(Exception):\n" + " def __init__(self, number):\n" + " self.number = number\n" + "\n" + "def meow_loudly():\n" + " raise MeowException(1)\n" + "\n" + "meow_loudly()\n", new Dictionary <string, object>(), 1); } catch (EscapedPyException e) { escaped = e; } }