示例#1
0
        protected AbstractSwitchBooleanOptionCommand(IGoogleTestExtensionOptionsPage package, int commandId)
        {
            Package = package ?? throw new ArgumentNullException(nameof(package));

            if (ServiceProvider.GetService(typeof(IMenuCommandService)) is OleMenuCommandService commandService)
            {
                var finalCommandId = new CommandID(CommandSet, commandId);
                var command        = new OleMenuCommand(OnCommandInvoked, finalCommandId);
                command.BeforeQueryStatus += OnBeforeQueryStatus;
                commandService.AddCommand(command);
            }
        }
        protected AbstractSwitchBooleanOptionCommand(IGoogleTestExtensionOptionsPage package, int commandId)
        {
            if (package == null)
                throw new ArgumentNullException(nameof(package));

            Package = package;

            OleMenuCommandService commandService = ServiceProvider.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
            if (commandService != null)
            {
                var finalCommandId = new CommandID(CommandSet, commandId);
                var command = new OleMenuCommand(OnCommandInvoked, finalCommandId);
                command.BeforeQueryStatus += OnBeforeQueryStatus;
                commandService.AddCommand(command);
            }
        }
 private SwitchPrintTestOutputOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0103) {}
 internal static void Initialize(IGoogleTestExtensionOptionsPage package)
 {
     Instance = new SwitchPrintTestOutputOptionCommand(package);
 }
 private SwitchCatchExceptionsOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0100)
 {
 }
 internal static void Initialize(IGoogleTestExtensionOptionsPage package)
 {
     Instance = new SwitchCatchExceptionsOptionCommand(package);
 }
示例#7
0
 private SwitchParallelExecutionOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0102)
 {
 }
示例#8
0
 private SwitchBreakOnFailureOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0101)
 {
 }
 private SwitchParallelExecutionOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0102) {}
 internal static void Initialize(IGoogleTestExtensionOptionsPage package)
 {
     Instance = new SwitchParallelExecutionOptionCommand(package);
 }
 private SwitchBreakOnFailureOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0101) {}
 internal static void Initialize(IGoogleTestExtensionOptionsPage package)
 {
     Instance = new SwitchBreakOnFailureOptionCommand(package);
 }
示例#13
0
 private SwitchPrintTestOutputOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0103)
 {
 }
示例#14
0
 internal static void Initialize(IGoogleTestExtensionOptionsPage package)
 {
     Instance = new SwitchPrintTestOutputOptionCommand(package);
 }
 internal static void Initialize(IGoogleTestExtensionOptionsPage package)
 {
     Instance = new SwitchCatchExceptionsOptionCommand(package);
 }
示例#16
0
 internal static void Initialize(IGoogleTestExtensionOptionsPage package)
 {
     Instance = new SwitchParallelExecutionOptionCommand(package);
 }
 private SwitchCatchExceptionsOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0100) {}
示例#18
0
 internal static void Initialize(IGoogleTestExtensionOptionsPage package)
 {
     Instance = new SwitchBreakOnFailureOptionCommand(package);
 }