private string GetExceptionMessage(CallSpecAndTarget[] querySpec, ICall[] matchingCallsInOrder) { const string callDelimiter = "\n "; var formatter = new SequenceFormatter(callDelimiter, querySpec, matchingCallsInOrder); return string.Format("\nExpected to receive these calls in order:\n{0}{1}\n" + "\nActually received matching calls in this order:\n{0}{2}\n\n{3}", callDelimiter, formatter.FormatQuery(), formatter.FormatActualCalls(), "*** Note: calls to property getters are not considered part of the query. ***"); }
private string GetExceptionMessage(CallSpecAndTarget[] querySpec, ICall[] matchingCallsInOrder) { const string callDelimiter = "\n "; var formatter = new SequenceFormatter(callDelimiter, querySpec, matchingCallsInOrder); return(string.Format("\nExpected to receive these calls in order:\n{0}{1}\n" + "\nActually received matching calls in this order:\n{0}{2}\n\n{3}", callDelimiter, formatter.FormatQuery(), formatter.FormatActualCalls(), "*** Note: calls to property getters are not considered part of the query. ***")); }