Пример #1
0
        public void Do_Func()
        {
            ExpectTraceOperation("foo");
            var result = Trace.Do("foo", () => 42);

            result.Should().Be(42);
        }
Пример #2
0
        public void Do_Action()
        {
            ExpectTraceOperation("foo");
            var count = 0;

            Trace.Do("foo", () => { count++; });
            count.Should().Be(1);
        }