static int Main() { Repro r = new Repro(); r.foo(); Console.WriteLine(r.stack[0]); return r.stack[0] == 42 ? 0 : 1; }
public static int Main() { Repro r = new Repro(); r.foo(); Console.WriteLine(r.stack[0]); return(r.stack[0] == 42 ? 0 : 1); }
private static int Main() { byte[] buf = new byte[8]; WriteFloat(buf, 0, 123.0F); WriteFloat(buf, 4, 456.0F); Repro pt = new Repro(); Test(pt, buf); if (Convert.ToInt32(pt.x) != 123 || Convert.ToInt32(pt.y) != 456) { Console.WriteLine("FAIL!"); Console.WriteLine("Unexpected values for pt.x and pt.y."); Console.WriteLine(pt.x); Console.WriteLine(pt.y); return 101; } Console.WriteLine("PASS!"); return 100; }
private static int Main() { byte[] buf = new byte[8]; WriteFloat(buf, 0, 123.0F); WriteFloat(buf, 4, 456.0F); Repro pt = new Repro(); Test(pt, buf); if (Convert.ToInt32(pt.x) != 123 || Convert.ToInt32(pt.y) != 456) { Console.WriteLine("FAIL!"); Console.WriteLine("Unexpected values for pt.x and pt.y."); Console.WriteLine(pt.x); Console.WriteLine(pt.y); return(101); } Console.WriteLine("PASS!"); return(100); }
static int Main() { Repro r = new Repro(); r.foo(); return r.stack[0] == 42 ? 0 : 1; }
static void Gazonk(Repro f) { }
static void Gazonk(Repro f) { f.PrintOk(); }
public static int Main() { Repro r = new Repro(); DoIt d = r.DoItRight; return r.Accomplice(1, 2, 3, d); }