コード例 #1
0
 public static int Main()
 {
     DivideByZeroExceptionCtor testObj = new DivideByZeroExceptionCtor();
     TestLibrary.TestFramework.BeginTestCase("for constructor of System.DivideByZeroException");
     if (testObj.RunTests())
     {
         TestLibrary.TestFramework.EndTestCase();
         TestLibrary.TestFramework.LogInformation("PASS");
         return 100;
     }
     else
     {
         TestLibrary.TestFramework.EndTestCase();
         TestLibrary.TestFramework.LogInformation("FAIL");
         return 0;
     }
 }
コード例 #2
0
    public static int Main()
    {
        DivideByZeroExceptionCtor testObj = new DivideByZeroExceptionCtor();

        TestLibrary.TestFramework.BeginTestCase("for constructor of System.DivideByZeroException");
        if (testObj.RunTests())
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("PASS");
            return(100);
        }
        else
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("FAIL");
            return(0);
        }
    }