public void TimeLimitTest() { using (var runner = new WasmRunner()) { runner.Load(File.ReadAllBytes("Assets/Editor/infinite_loop_test.wasm")); Assert.Throws <System.Reflection.TargetInvocationException>(() => runner.Initialize()); } }
static int Main(String[] args) { // Process rsp files // FIXME: This doesn't work with wasm /* * var new_args = new List<string> (); * foreach (var arg in args) { * if (arg [0] == '@') { * foreach (var line in File.ReadAllLines ("/" + arg.Substring (1))) * new_args.Add (line); * } else { * new_args.Add (arg); * } * } */ var cmdline = new CmdLineParser(args); testRunner = new WasmRunner(cmdline.Project); return(testRunner.Run()); }