Esempio n. 1
0
 internal static void PrintStackTrace()
 {
     TraceEvent(IndentLevel.StackTrace, () => "Stack trace:\n" + MockingContext.GetStackTrace(IndentLevel.StackTraceInner.AsIndent()));
 }
Esempio n. 2
0
        public void Process(Invocation invocation)
        {
            this.wasCalled          = true;
            this.calledInWrongOrder = (this.LastIdInOrder != this.arrangementId - 1);
            this.LastIdInOrder      = this.arrangementId;

            this.InOrderExecutionLog += invocation.InputToString() + " called at:\n" + MockingContext.GetStackTrace("    ");

            if (this.calledInWrongOrder)
            {
                MockingContext.Fail("{0}Last call executed out of order. Order of calls so far:\n{1}",
                                    this.message != null ? this.message + " " : "", InOrderExecutionMessage);
            }
        }
Esempio n. 3
0
 public void Process(Invocation invocation)
 {
     this.processedStackTrace = invocation.InputToString() + " called at:\n" + MockingContext.GetStackTrace("    ");
 }