public long GetContextTime(ContextInfo contextInfo) { if (this._contextTimes.ContainsKey(contextInfo)) { return this._contextTimes[contextInfo]; } return -1; }
public void OnContextEnd(ContextInfo contextInfo) { this.listeners.Each(listener => listener.OnContextEnd(contextInfo)); }
public void OnContextEnd(ContextInfo contextInfo) { contextEnd = contextInfo; }
public void OnContextStart(ContextInfo contextInfo) { contextStart = contextInfo; }
public static void Run(this ISpecificationRunListener adapter, AssemblyInfo assemblyInfo, SpecificationInfo specificationInfo, Result failure, ExceptionResult exceptionResult, ContextInfo contexInfo) { adapter.OnAssemblyStart(assemblyInfo); adapter.OnAssemblyEnd(assemblyInfo); adapter.OnSpecificationStart(specificationInfo); adapter.OnSpecificationEnd(specificationInfo, failure); adapter.OnFatalError(exceptionResult); adapter.OnContextStart(contexInfo); adapter.OnContextEnd(contexInfo); adapter.OnRunStart(); adapter.OnRunEnd(); }
public void OnContextEnd(ContextInfo context) { _reporter.OnContextEnd(context); }
public void OnContextStart(ContextInfo context) { _reporter.OnContextStart(context); }
public void OnContextEnd(ContextInfo context) { LastContext = context; }
public void OnContextStart(ContextInfo context) { }
public virtual void OnContextEnd(ContextInfo contextInfo) { _runListener.OnContextEnd(contextInfo); }
public virtual void OnContextStart(ContextInfo contextInfo) { _runListener.OnContextStart(contextInfo); }
public void OnContextEnd(ContextInfo context) { this._contextTimer.Stop(); this._contextTimes[context] = this._contextTimer.ElapsedMilliseconds; }
public void OnContextStart(ContextInfo context) { this._contextTimer.Restart(); this._specificationTimer.Restart(); }