示例#1
0
 public void SetUp()
 {
     mockCodeContext = Substitute.For <IDebugCodeContext2>();
     mockProgram     = Substitute.For <IDebugProgram2>();
     expectedResolutionInfo.dwFields = enum_BPRESI_FIELDS.BPRESI_BPRESLOCATION |
                                       enum_BPRESI_FIELDS.BPRESI_PROGRAM;
     expectedResolutionInfo.bpResLocation.bpType       = (uint)enum_BP_TYPE.BPT_CODE;
     expectedResolutionInfo.bpResLocation.unionmember1 =
         Marshal.GetComInterfaceForObject(
             mockCodeContext, typeof(IDebugCodeContext2));
     expectedResolutionInfo.pProgram = mockProgram;
     breakpointResolution            = new DebugBreakpointResolution.Factory().Create(
         mockCodeContext, mockProgram);
 }