public void BindFunctionBreakpointWithoutOffset() { SetBreakpointType(enum_BP_LOCATION_TYPE.BPLT_CODE_FUNC_OFFSET); pendingBreakpoint = debugPendingBreakpointFactory.Create( mockBreakpointManager, mockProgram, mockBreakpointRequest, mockTarget, mockMarshal); MockFunctionBreakpoint(1); MockFunctionPosition(TEST_FUNCTION_NAME_WITHOUT_OFFSET); var result = pendingBreakpoint.Bind(); IDebugErrorBreakpoint2 breakpointError = GetBreakpointError(); var boundBreakpoints = GetBoundBreakpoints(); mockTarget.Received().BreakpointCreateByName(TEST_FUNCTION_NAME); Assert.AreEqual(1, boundBreakpoints.Count); mockBreakpointManager.Received().RegisterPendingBreakpoint(pendingBreakpoint); mockTarget.DidNotReceive().BreakpointDelete(Arg.Any <int>()); Assert.AreEqual(null, breakpointError); Assert.AreEqual(VSConstants.S_OK, result); }