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); }