public void GetSomethingTest() { var result = _decorated.GetSomething(8); Assert.AreEqual(2, _log.Count); Assert.AreEqual("Calling GetSomething(8).", _log.Dequeue().Message); AssertStartsWith($"GetSomething returned false in duration", _log.Dequeue().Message); }
public void GetSomethingTest() { var result = _decorated.GetSomething(8); AssertLog("GetSomething called", $"GetSomething returned {result}"); }