// Create default mocks, and return values for the lldb breakpoint and breakpoint locations // for a function breakpoint. breakpointLocations is a list of mock breakpoint locations // that will be returned by the mock lldb breakpoint. private void MockFunctionBreakpoint(List <SbBreakpointLocation> breakpointLocations) { for (uint i = 0; i < breakpointLocations.Count; i++) { mockBreakpoint.GetLocationAtIndex(i).Returns(breakpointLocations[(int)i]); } mockBreakpoint.GetNumLocations().Returns((uint)breakpointLocations.Count); mockBreakpoint.GetId().Returns(EXPECTED_ID); mockTarget.BreakpointCreateByName(TEST_FUNCTION_NAME).Returns(mockBreakpoint); }
public uint GetNumLocations() => sbBreakpoint.GetNumLocations();