public void Stop_Returns_Result() { string name = "test"; var timer = new MiniProfilerTimerMonitor(name); var result = timer.Stop(); Assert.NotNull(result); Assert.NotNull(result.Steps); Assert.Equal(1, result.Steps.Count()); }
public void Stop_With_Steps_Returns_Result() { string name = "test"; var timer = new MiniProfilerTimerMonitor(name); using (timer.Step("test")) { // do nothing } var result = timer.Stop(); Assert.NotNull(result); Assert.NotNull(result.Steps); Assert.Equal(2, result.Steps.Count()); }