private static void AppendCallList(IEnumerable<IFakeObjectCall> calls, CallWriter callWriter, IOutputWriter writer) { using (writer.Indent()) { callWriter.WriteCalls(calls, writer); } }
private static void AppendCallList(IEnumerable <IFakeObjectCall> calls, CallWriter callWriter, IOutputWriter writer) { using (writer.Indent()) { callWriter.WriteCalls(calls, writer); } }
private static void ThrowExceptionWhenAssertionFailed( List<AssertedCall> assertedCalls, CallWriter callWriter, IEnumerable<IFakeObjectCall> originalCallList) { var message = new StringBuilderOutputWriter(); message.WriteLine(); message.WriteLine(); using (message.Indent()) { message.Write("Assertion failed for the following calls:"); message.WriteLine(); using (message.Indent()) { foreach (var call in assertedCalls) { message.Write("'"); message.Write(call.CallDescription); message.Write("' "); message.Write("repeated "); message.Write(call.RepeatDescription); message.WriteLine(); } } message.Write("The calls where found but not in the correct order among the calls:"); message.WriteLine(); using (message.Indent()) { callWriter.WriteCalls(originalCallList, message); } } throw new ExpectationException(message.Builder.ToString()); }
private static void ThrowExceptionWhenAssertionFailed( List <AssertedCall> assertedCalls, CallWriter callWriter, List <ICompletedFakeObjectCall> originalCallList) { var message = new StringBuilderOutputWriter(); message.WriteLine(); message.WriteLine(); using (message.Indent()) { message.Write("Assertion failed for the following calls:"); message.WriteLine(); using (message.Indent()) { foreach (var call in assertedCalls) { message.Write("'"); message.Write(call.CallDescription); message.Write("' "); message.Write("repeated "); message.Write(call.RepeatDescription); message.WriteLine(); } } message.Write("The calls where found but not in the correct order among the calls:"); message.WriteLine(); using (message.Indent()) { callWriter.WriteCalls(originalCallList, message); } } throw new ExpectationException(message.Builder.ToString()); }