コード例 #1
0
        public bool AddResult(string description, bool itemResult)
        {
            try
            {
                var currentOutcome = new Outcome(description, itemResult);
                result.Add(currentOutcome);
                if (!itemResult)
                {
                    //TODO as per the previous Add Result method something as follows
                    //  LogBug(Verbosity.Level.Null);
                }

                return true;
            }
            catch (NullReferenceException)
            {
                // Logger.WriteExceptionToLog(string.Format("Value {0} has not been added to the string list of results. Exeception thrown {1}", _result, ex.InnerException));
                return false;
            }
        }
コード例 #2
0
        public bool AddResult(string description, bool itemResult, Verbosity.Level verbosity)
        {
            try
            {
                var currentOutcome = new Outcome(description, itemResult, verbosity);
                result.Add(currentOutcome);
                if (!itemResult)
                {
                    //TODO
                    // write a method in here to log a bug in JIRA Calling the API
                    // not sure how to do so yet so leaving as a todo
                    //LogBug(currentOutcome.VerbosityLevel);
                }

                return true;
            }
            catch (NullReferenceException)
            {
                //Logger.WriteExceptionToLog(string.Format("Value {0} has not been added to the string list of results. Exeception thrown {1}", _result, ex.InnerException));
                return false;
            }
        }