コード例 #1
0
    public static int Main()
    {
        UInt16CompareTo ui32ct2 = new UInt16CompareTo();
        TestLibrary.TestFramework.BeginTestCase("for method: UInt16.CompareTo(UInt16)");

        if (ui32ct2.RunTests())
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("PASS");
            return 100;
        }
        else
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("FAIL");
            return 0;
        }
    }
コード例 #2
0
ファイル: uint16compareto1.cs プロジェクト: yukitos/coreclr
    public static int Main()
    {
        UInt16CompareTo ui32ct2 = new UInt16CompareTo();

        TestLibrary.TestFramework.BeginTestCase("for method: UInt16.CompareTo(UInt16)");

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