void IMessageReporter.Report(Message message) { switch (message.Severity) { case Severity.Error: severityError++; break; case Severity.Warning: severityWarning++; break; case Severity.Information: severityInformation++; break; case Severity.Disabled: severityDisabled++; break; default: throw new ArgumentException(string.Format("Severity {0} is not supported by this Message Reporter.", message.Severity)); } reportedMessages.Add(message); logger.Report(message); }