コード例 #1
0
    public bool PosTest3()
    {
        bool retVal = true;

        TestLibrary.TestFramework.BeginScenario("PosTest3: Verify convert byte is min value...");

        try
        {
            Byte   myByte     = 0;
            string byteString = myByte.ToString();

            if (byteString != GlobLocHelper.OSByteToString(myByte))
            {
                TestLibrary.TestFramework.LogError("005", "The convert string is not correct!");
                retVal = false;
            }
        }
        catch (Exception e)
        {
            TestLibrary.TestFramework.LogError("006", "Unexpected exception occurs: " + e);
            retVal = false;
        }

        return(retVal);
    }