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

        TestLibrary.TestFramework.BeginTestCase("ArrayIndexOf4");

        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
    public static int Main()
    {
        ArrayIndexOf4 ac = new ArrayIndexOf4();

        TestLibrary.TestFramework.BeginTestCase("Array.IndexOf(T[] array, T value)");

        if (ac.RunTests())
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("PASS");
            return(100);
        }
        else
        {
            TestLibrary.TestFramework.EndTestCase();
            TestLibrary.TestFramework.LogInformation("FAIL");
            return(0);
        }
    }
Beispiel #3
0
    public static int Main()
    {
        ArrayIndexOf4 test = new ArrayIndexOf4();

        TestLibrary.TestFramework.BeginTestCase("ArrayIndexOf4");

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