public void BindUnsupportedType() { // Set a unsupported breakpoint type and create a new pending watchpoint. SetBreakpointType(enum_BP_LOCATION_TYPE.BPLT_NONE); watchpoint = watchpointFactory.Create(mockBreakpointManager, mockBreakpointRequest, mockTarget, mockProgram, mockMarshal); var result = watchpoint.Bind(); IDebugErrorBreakpoint2 breakpointError = GetWatchpointError(); mockBreakpointManager.Received().ReportBreakpointError( Arg.Any <DebugBreakpointError>()); Assert.AreNotEqual(null, breakpointError); Assert.AreEqual(VSConstants.S_FALSE, result); }