/// <summary> /// Initializes a new instance of the <see cref="DumpStackToCSharpCodeCommand"/> class. /// Adds our command handlers for menu (commands must exist in the command table file) /// </summary> /// <param name="package">Owner package, not null.</param> /// <param name="commandService">Command service to add command to, not null.</param> private DumpStackToCSharpCodeCommand(AsyncPackage package, OleMenuCommandService commandService) { this.package = package ?? throw new ArgumentNullException(nameof(package)); commandService = commandService ?? throw new ArgumentNullException(nameof(commandService)); var menuCommandID = new CommandID(CommandSet, CommandId); var menuItem = new MenuCommand(this.Execute, menuCommandID); commandService.AddCommand(menuItem); _currentStackWrapper = new CurrentStackWrapper(); _argumentsListPurifier = new ArgumentsListPurifier(); }
public void SetUp() { _argumentsListPurifier = new ArgumentsListPurifier(); }