public void TestProfilingSessionExtensions_Ignore() { var mockStep = new Mock<IDisposable>(); var mockProfiler = new Mock<IProfiler>(); mockProfiler.Setup(profiler => profiler.Ignore()).Returns(mockStep.Object); var target = new ProfilingSession(mockProfiler.Object); Assert.AreEqual(mockStep.Object, target.Ignore()); }
public void TestProfilingSessionExtensions_Ignore() { var mockStep = new Mock <IDisposable>(); var mockProfiler = new Mock <IProfiler>(); mockProfiler.Setup(profiler => profiler.Ignore()).Returns(mockStep.Object); var target = new ProfilingSession(mockProfiler.Object); Assert.AreEqual(mockStep.Object, target.Ignore()); }