public void Add(Counts peer) { Rights += peer.Rights; Wrongs += peer.Wrongs; Exceptions += peer.Exceptions; SyntaxErrors += peer.SyntaxErrors; }
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); }
// 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); }