コード例 #1
0
        public Window CreateToolWindow(AddIn AddInInst, string ProgId, string Caption, string GuidPosition, ref object DocObj)
        {
            DocObj = new _DockableWindowHost();
            var result = MockFactory.CreateWindowMock(Caption);

            result.Setup(m => m.VBE).Returns(VBE);
            result.Setup(m => m.Collection).Returns(this);

            return(result.Object);
        }
コード例 #2
0
 public Window CreateToolWindow(AddIn AddInInst, string ProgId, string Caption, string GuidPosition, ref object DocObj)
 {
     DocObj = new _DockableWindowHost();
     return(_window);
 }