protected override void Initialize() { base.Initialize(); SetupLogging(); var componentModel = (IComponentModel)GetService(typeof(SComponentModel)); var packageInstaller = componentModel.GetService <IVsPackageInstaller>(); var dte = (DTE2)GetService(typeof(DTE)); var uiShell = (IVsUIShell)GetService(typeof(SVsUIShell)); LoadOptions(); _projectModel = new ProjectModel(dte); _tabJumper = new TabJumper(dte); _solutionHelper = new TestLocator(dte, uiShell, packageInstaller, _projectModel); var menuCommandService = GetService(typeof(IMenuCommandService)) as OleMenuCommandService; if (null == menuCommandService) { return; } var cmdIdJumpRight = new CommandID(GuidList.guidTddHelperCmdSet, (int)PkgCmdIDList.cmdIdJumpRight); var menuItemJumpRight = new MenuCommand(_tabJumper.JumpRight, cmdIdJumpRight); menuCommandService.AddCommand(menuItemJumpRight); var cmdIdJumpLeft = new CommandID(GuidList.guidTddHelperCmdSet, (int)PkgCmdIDList.cmdIdJumpLeft); var menuItemJumpLeft = new MenuCommand(_tabJumper.JumpLeft, cmdIdJumpLeft); menuCommandService.AddCommand(menuItemJumpLeft); var cmdIdLocateTest = new CommandID(GuidList.guidTddHelperCmdSet, (int)PkgCmdIDList.cmdIdLocateTest); var menuItemLocateTest = new MenuCommand(_solutionHelper.OpenTestOrImplementation, cmdIdLocateTest); menuCommandService.AddCommand(menuItemLocateTest); }
public void SetUp() { _t = new TabJumper(_mockDte.Object); }