示例#1
0
 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 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);
        }