public void Do_Func() { ExpectTraceOperation("foo"); var result = Trace.Do("foo", () => 42); result.Should().Be(42); }
public void Do_Action() { ExpectTraceOperation("foo"); var count = 0; Trace.Do("foo", () => { count++; }); count.Should().Be(1); }