public bool runTest()
    {
        Console.WriteLine(s_strTFPath + "\\" + s_strTFName + " , for " + s_strClassMethod + " , Source ver " + s_strDtTmVer);
        String strLoc          = "Loc_000oo";
        String strValue        = String.Empty;
        int    iCountErrors    = 0;
        int    iCountTestcases = 0;

        try
        {
            TypeCode ReturnValue;
            strLoc = "Loc_400vy";
            SByte test = 0;
            iCountTestcases++;
            ReturnValue = test.GetTypeCode();
            if (ReturnValue != TypeCode.SByte)
            {
                ++iCountErrors;
                printerr("Error_100aa! Expected==TypeCode.SByte Value==" + ReturnValue);
            }
        } catch (Exception exc_general) {
            ++iCountErrors;
            Console.WriteLine(s_strTFAbbrev + " : Error Err_8888yyy!  strLoc==" + strLoc + ", exc_general==" + exc_general.ToString());
        }
        if (iCountErrors == 0)
        {
            Console.WriteLine("paSs. " + s_strTFName + " ,iCountTestcases==" + iCountTestcases.ToString());
            return(true);
        }
        else
        {
            Console.WriteLine("FAiL! " + s_strTFName + " ,iCountErrors==" + iCountErrors.ToString() + " , BugNums?: " + s_strActiveBugNums);
            return(false);
        }
    }
Exemple #2
0
 public TypeCode GetTypeCode()
 {
     return(val.GetTypeCode());
 }