Example #1
0
 public void Add(Counts peer)
 {
     Rights       += peer.Rights;
     Wrongs       += peer.Wrongs;
     Exceptions   += peer.Exceptions;
     SyntaxErrors += peer.SyntaxErrors;
 }
Example #2
0
 public bool Equals(Counts obj)
 {
     if (ReferenceEquals(null, obj))
     {
         return(false);
     }
     if (ReferenceEquals(this, obj))
     {
         return(true);
     }
     return(obj.Rights == Rights && obj.Wrongs == Wrongs && obj.Exceptions == Exceptions &&
            obj.SyntaxErrors == SyntaxErrors);
 }
Example #3
0
        // TODO need a UT on this thing. Put this logic into execution context instead
        public bool CanContinue(Counts counts)
        {
            if (_cancelled)
            {
                return(false);
            }
            if (BreakOnExceptions && counts.Exceptions > 0)
            {
                return(false);
            }
            if (BreakOnWrongs && counts.Wrongs > 0)
            {
                return(false);
            }

            return(true);
        }