Beispiel #1
0
    public bool PosTest1()
    {
        bool retVal = true;

        TestLibrary.TestFramework.BeginScenario("PosTest1: Call ctor to create a decoder instance");

        try
        {
            DecoderCtorDecoder decoder = new DecoderCtorDecoder();
            if (decoder == null)
            {
                TestLibrary.TestFramework.LogError("001.1", "Call ctor to create a decoder instance returns null reference");
                retVal = false;
            }
        }
        catch (Exception e)
        {
            TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
            TestLibrary.TestFramework.LogInformation(e.StackTrace);
            retVal = false;
        }

        return retVal;
    }
Beispiel #2
0
    public bool PosTest1()
    {
        bool retVal = true;

        TestLibrary.TestFramework.BeginScenario("PosTest1: Call ctor to create a decoder instance");

        try
        {
            DecoderCtorDecoder decoder = new DecoderCtorDecoder();
            if (decoder == null)
            {
                TestLibrary.TestFramework.LogError("001.1", "Call ctor to create a decoder instance returns null reference");
                retVal = false;
            }
        }
        catch (Exception e)
        {
            TestLibrary.TestFramework.LogError("001.0", "Unexpected exception: " + e);
            TestLibrary.TestFramework.LogInformation(e.StackTrace);
            retVal = false;
        }

        return(retVal);
    }