public void BindWatchpoint() { SbError error; Assert.AreEqual(VSConstants.S_OK, watchpoint.Bind()); mockLldbWatchpoint.Received(1).SetEnabled(true); mockTarget.Received(1).WatchAddress(TEST_ADDRESS, WATCH_SIZE, false, true, out error); mockBreakpointManager.Received(1).RegisterWatchpoint(watchpoint); IEnumDebugBoundBreakpoints2 enumBoundBreakpoints; watchpoint.EnumBoundBreakpoints(out enumBoundBreakpoints); uint countBoundBreakpoint; enumBoundBreakpoints.GetCount(out countBoundBreakpoint); Assert.AreEqual(1, countBoundBreakpoint); IDebugBoundBreakpoint2[] boundBreakpoint = new IDebugBoundBreakpoint2[1]; uint actualCount = 0; enumBoundBreakpoints.Next(1, boundBreakpoint, ref actualCount); Assert.AreEqual(watchpoint, boundBreakpoint[0]); }