Пример #1
0
    public bool PosTest1()
    {
        bool retVal = true;



        // Add your scenario description here

        TestLibrary.TestFramework.BeginScenario("PosTest1:Verify Class StringComparer Ctor");



        try
        {
            StringComparer sc = new StringComparerCtorTest();
            if (sc == null)
            {
                TestLibrary.TestFramework.LogError("001.1", " StringComparer Ctor Err.");
                retVal = false;
            }
        }

        catch (Exception e)
        {
            TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);

            TestLibrary.TestFramework.LogInformation(e.StackTrace);

            retVal = false;
        }



        return(retVal);
    }
Пример #2
0
    public bool PosTest1()
    {

        bool retVal = true;



        // Add your scenario description here

        TestLibrary.TestFramework.BeginScenario("PosTest1:Verify Class StringComparer Ctor");



        try
        {

            StringComparer sc = new StringComparerCtorTest();
            if (sc == null)
            {
                TestLibrary.TestFramework.LogError("001.1", " StringComparer Ctor Err.");
                retVal = false;
            }

        }

        catch (Exception e)
        {

            TestLibrary.TestFramework.LogError("001", "Unexpected exception: " + e);

            TestLibrary.TestFramework.LogInformation(e.StackTrace);

            retVal = false;

        }



        return retVal;

    }