public void CanBindDeleted()
        {
            pendingBreakpoint.Delete();
            IEnumDebugErrorBreakpoints2 errorBreakpointsEnum;
            var result = pendingBreakpoint.CanBind(out errorBreakpointsEnum);

            Assert.AreEqual(null, errorBreakpointsEnum);
            Assert.AreEqual(AD7Constants.E_BP_DELETED, result);
        }
        public void CanBind()
        {
            IEnumDebugErrorBreakpoints2 ppErrorEnum;

            Assert.AreEqual(AD7Constants.E_BP_DELETED, pendingBreakpoint.CanBind(out ppErrorEnum));
            Assert.IsNull(ppErrorEnum);
        }
        public void CanBindUnsupportedType()
        {
            // Set a unsupported breakpoint type and create a new pending breakpoint.
            SetBreakpointType(enum_BP_LOCATION_TYPE.BPLT_NONE);
            pendingBreakpoint = debugPendingBreakpointFactory.Create(
                mockBreakpointManager, mockProgram, mockBreakpointRequest, mockTarget,
                mockMarshal);

            IEnumDebugErrorBreakpoints2 errorBreakpointsEnum;
            var result = pendingBreakpoint.CanBind(out errorBreakpointsEnum);

            Assert.AreNotEqual(null, errorBreakpointsEnum);
            Assert.AreEqual(VSConstants.S_FALSE, result);
        }
        public void CanBindFunctionBreakpoint()
        {
            // Set a function breakpoint type and create a new pending breakpoint.
            SetBreakpointType(enum_BP_LOCATION_TYPE.BPLT_CODE_FUNC_OFFSET);
            pendingBreakpoint = debugPendingBreakpointFactory.Create(
                mockBreakpointManager, mockProgram, mockBreakpointRequest, mockTarget,
                mockMarshal);

            IEnumDebugErrorBreakpoints2 errorBreakpointsEnum;
            var result = pendingBreakpoint.CanBind(out errorBreakpointsEnum);

            Assert.AreEqual(null, errorBreakpointsEnum);
            Assert.AreEqual(VSConstants.S_OK, result);
        }