Beispiel #1
0
    private const long c_DELTA = 9999999;               // ticks  (.999 seconds)

    public static int Main()
    {
        AutoResetEventCtor test = new AutoResetEventCtor();

        TestLibrary.TestFramework.BeginTestCase("AutoResetEventCtor");

        if (test.RunTests())
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("PASS");
            return(100);
        }
        else
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("FAIL");
            return(0);
        }
    }
Beispiel #2
0
    private const long c_DELTA               = 9999999;	// ticks  (.999 seconds)

    public static int Main()
    {
        AutoResetEventCtor test = new AutoResetEventCtor();

        TestLibrary.TestFramework.BeginTestCase("AutoResetEventCtor");

        if (test.RunTests())
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("PASS");
            return 100;
        }
        else
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("FAIL");
            return 0;
        }
    }