public void ResetSetsCountsToZero() { var log = new LoggingValidationLog(); log.AddError("Test"); log.AddWarning("Test"); log.Reset(); Assert.AreEqual(0, log.NumberOfErrors); Assert.AreEqual(0, log.NumberOfWarnings); }
public void AddWarningWithExceptionIncreasesCount() { var log = new LoggingValidationLog(); log.AddWarning(new Exception("Test")); Assert.AreEqual(1, log.NumberOfWarnings); }
public void AddErrorWithMessageIncreasesCount() { var log = new LoggingValidationLog(); log.AddError("Test"); Assert.AreEqual(1, log.NumberOfErrors); }