Esempio n. 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);
 }
Esempio n. 7
0
 private SwitchParallelExecutionOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0102)
 {
 }
Esempio n. 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);
 }
Esempio n. 13
0
 private SwitchPrintTestOutputOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0103)
 {
 }
Esempio n. 14
0
 internal static void Initialize(IGoogleTestExtensionOptionsPage package)
 {
     Instance = new SwitchPrintTestOutputOptionCommand(package);
 }
 internal static void Initialize(IGoogleTestExtensionOptionsPage package)
 {
     Instance = new SwitchCatchExceptionsOptionCommand(package);
 }
Esempio n. 16
0
 internal static void Initialize(IGoogleTestExtensionOptionsPage package)
 {
     Instance = new SwitchParallelExecutionOptionCommand(package);
 }
 private SwitchCatchExceptionsOptionCommand(IGoogleTestExtensionOptionsPage package) : base(package, 0x0100) {}
Esempio n. 18
0
 internal static void Initialize(IGoogleTestExtensionOptionsPage package)
 {
     Instance = new SwitchBreakOnFailureOptionCommand(package);
 }