コード例 #1
0
        Expectation Dequeue(AssertionData data)
        {
            if (_expectations.Count < 1)
            {
                _inner.Fail("Unexpected assertion encountered with message: {0}", string.Format(data.FormatMessage, data.FormatArgs));
            }

            var next = _expectations.Dequeue();

            return(next);
        }