public void ExecutePython3() { code = @"print(""Tabs\n\tare\n\t\tbetter\n\t\t\tthan\n\t\t\t\tspaces!"")"; testJob = new IdeoneJob(code, 116); testJob.Execute(); expectedOutput = "Tabs\n\tare\n\t\tbetter\n\t\t\tthan\n\t\t\t\tspaces!\n"; Assert.AreEqual(expectedOutput, testJob.Output); }
public void ExecuteRuby() { code = @"print 'chunky bacon!'"; testJob = new IdeoneJob(code, 17); testJob.Execute(); expectedOutput = "chunky bacon!"; Assert.AreEqual(expectedOutput, testJob.Output); }
public void ExecuteJava7() { code = "class Example\n{\n\t" + "public static void main(String[] args)\n\t{\n\t\t" + "System.out.println(\"Looooool\");\n\t}\n}\n"; testJob = new IdeoneJob(code, 55); testJob.Execute(); expectedOutput = "Looooool\n"; Assert.AreEqual(expectedOutput, testJob.Output); }
public void IdeoneInit() { IdeoneJob.Authorize(username, apiPassword); output = new StringWriter(); }
public void BadCode() { code = "(siht_cOde]"; testJob = new IdeoneJob(code, 55); testJob.Execute(); }
public void ServiceAccessTest() { testJob = new IdeoneJob(null, 0); Assert.AreEqual("OK", testJob.TestAccess()); }
public void IdeoneInit() { IdeoneJob.Authorize("mikeroll", "lucky_starfish"); }