### Question:
ProgressIndicator { public void addFoundErrors(final int errorsToAdd) { isTrue(errorsToAdd > 0, "Cannot add negative number of errors"); totalResourcesWithErrors++; totalFoundErrors += errorsToAdd; } ProgressIndicator(final Log log); void reset(); void logSummary(); synchronized void onProcessingResource(final Resource resource); void addFoundErrors(final int errorsToAdd); final int getTotalFoundErrors();  }### Answer:
@Test(expected = IllegalArgumentException.class) public void cannotAddNegativeNumberOfErrors() { victim.addFoundErrors(-1); }
@Test(expected = IllegalArgumentException.class) public void cannotAddZeroErrors() { victim.addFoundErrors(0); }