public async Task GetSomethingAsyncTest()
        {
            var result = await _decorated.GetSomethingAsync(183);

            Assert.AreEqual(2, _log.Count);
            Assert.AreEqual("Calling GetSomethingAsync(183).", _log.Dequeue().Message);
            AssertStartsWith($"GetSomethingAsync returned false in duration", _log.Dequeue().Message);
        }
Exemple #2
0
        public async Task GetSomethingAsyncTest()
        {
            var result = await _decorated.GetSomethingAsync(183);

            AssertLog("GetSomethingAsync called", $"GetSomethingAsync returned {result}");
        }