public void sub_reporter_creates_sub_report_and_reports_to_it() { var subReporter = _statisticsReporter.CreateSubReporter("foo"); _clock.Advance(2.5); subReporter.ReportEvent("bar"); _statisticsReporter.DumpToReport(_report); var subReport = _report.GetSubReportAndRemove("foo"); _report.ValidateNoMoreReports(); subReport.ValidateReportedAndRemove("bar_COUNT", 1); }
public void DumpToReport(IReport report, double dt_sec) { _statisticsReporter.DumpToReport(report.SubReport(_name)); }