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);
        }
Esempio n. 2
0
        public async Task DoSomethingAsyncTest()
        {
            await _decorated.DoSomethingAsync();

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