internal static ReadOnlyCollection <string> GetVerificationFailures(this IMock @this) { var failures = new List <string>(); foreach (var pair in @this.Handlers) { foreach (var handler in pair.Value) { foreach (var failure in handler.Verify()) { var method = @this.GetType().FindMethod(pair.Key); var description = method.GetMethodDescription(new SortedSet <string>()); failures.Add(ErrorMessages.GetVerificationFailed(@this.GetType().FullName, description, failure)); } } } return(failures.AsReadOnly()); }