public int GetAllFramesAsync(enum_FRAMEINFO_FLAGS dwFlags, uint dwFlagsEx, uint radix, IAsyncDebugGetFramesCompletionHandler pCompletionHandler, out IAsyncDebugEngineOperation ppDebugOperation) { ppDebugOperation = new AsyncGetStackFramesOperation(Self, _stackFramesProvider, dwFlags, pCompletionHandler, _taskExecutor); return(VSConstants.S_OK); }
public AsyncGetStackFramesOperation(IDebugThread debugThread, StackFramesProvider stackFramesProvider, enum_FRAMEINFO_FLAGS fieldSpec, IAsyncDebugGetFramesCompletionHandler completionHandler, ITaskExecutor taskExecutor) { _debugThread = debugThread; _stackFramesProvider = stackFramesProvider; _fieldSpec = fieldSpec; _completionHandler = completionHandler; _taskExecutor = taskExecutor; }
public void SetUp() { _completionHandler = Substitute.For <IAsyncDebugGetFramesCompletionHandler>(); _taskExecutor = Substitute.ForPartsOf <FakeTaskExecutor>(); _debugThread = Substitute.For <IDebugThread>(); _stackFramesProvider = Substitute.For <StackFramesProvider>(null, null, null, null, null); _getStackFramesOp = new AsyncGetStackFramesOperation(_debugThread, _stackFramesProvider, _fieldSpec, _completionHandler, _taskExecutor); }