Example #1
0
 protected override void OnExecute(object parameter)
 {
     if (parameter != null)
     {
         _newUnitTestModuleCommand.Execute(GetDeclaration(parameter));
     }
     else
     {
         _newUnitTestModuleCommand.Execute(_vbe.ActiveVBProject);
     }
 }
 protected override void OnExecute(object parameter)
 {
     if (parameter is CodeExplorerItemViewModel node)
     {
         _newUnitTestModuleCommand.Execute(node.Declaration);
     }
     else
     {
         _newUnitTestModuleCommand.Execute(_vbe.ActiveVBProject);
     }
 }