/**********************************************************************/ #region Public Methods /// <summary> /// Initializes the command for use by the application, by creating a new instance of the command, /// and saving it as <see cref="Default"/>. /// </summary> /// <param name="package">The package containing this command.</param> /// <exception cref="ArgumentNullException">Throws if package is null.</exception> /// <exception cref="InvalidOperationException">Throws if <see cref="Initialize"/> has already been invoked.</exception> public static void Initialize(Package package) { if (package == null) { throw new ArgumentNullException(nameof(package)); } if (Default != null) { throw new InvalidOperationException($"{nameof(Initialize)} has already been invoked."); } Default = new ShowBetterTestExplorerCommand(package); }
/**********************************************************************/ #region Package Overrides /// <summary> /// See <see cref="Package.Initialize"/>. /// </summary> protected override void Initialize() { ShowBetterTestExplorerCommand.Initialize(this); base.Initialize(); }