public async Task DoSomethingAsyncTest()
        {
            await _decorated.DoSomethingAsync();

            Assert.AreEqual(2, _log.Count);
            Assert.AreEqual("Calling DoSomethingAsync().", _log.Dequeue().Message);
            AssertStartsWith("DoSomethingAsync completed in duration", _log.Dequeue().Message);
        }
예제 #2
0
        public async Task DoSomethingAsyncTest()
        {
            await _decorated.DoSomethingAsync();

            AssertLog("DoSomethingAsync called", "DoSomethingAsync completed");
        }