コード例 #1
0
        public void CreatePendingBreakpoint()
        {
            var breakpointRequest       = Substitute.For <IDebugBreakpointRequest2>();
            var pendingBreakpointReturn = Substitute.For <IDebugPendingBreakpoint2>();

            _breakpointManager
            .When(bm => bm.CreatePendingBreakpoint(breakpointRequest,_target,out _))
            .Do(x => { x[2] = pendingBreakpointReturn; });

            Assert.That(_attachedProgram.CreatePendingBreakpoint(breakpointRequest),
                        Is.EqualTo(pendingBreakpointReturn));
        }