public static int Main() { InterlockedRead ir = new InterlockedRead(); ir.TestOne(Int64.MaxValue); ir.TestOne(Int64.MinValue); ir.TestOne(0); ir.TestOne(Int32.MaxValue); ir.TestOne(Int32.MinValue); Console.WriteLine(success == expected ? "Test Passed" : "Test Failed"); return (success == expected) ? 100 : -1; }
public static int Main() { InterlockedRead ir = new InterlockedRead(); ir.TestOne(Int64.MaxValue); ir.TestOne(Int64.MinValue); ir.TestOne(0); ir.TestOne(Int32.MaxValue); ir.TestOne(Int32.MinValue); Console.WriteLine(success == expected ? "Test Passed" : "Test Failed"); return((success == expected) ? 100 : -1); }