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); }
public async Task DoSomethingAsyncTest() { await _decorated.DoSomethingAsync(); AssertLog("DoSomethingAsync called", "DoSomethingAsync completed"); }