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);
        }
예제 #2
0
        public void GetSomethingTest()
        {
            var result = _decorated.GetSomething(8);

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