Hi,
Sorry, if i am posting this question in wrong forum.
I just started developing the visual studio extension following the MSDN library and so far i have reached only adding the item to the context menu of the code editor window.
I am using Visual Studio 2013 and installed the Visual Studio SDK to get the extensibility project templates. I created a small extension to get started and manage the add the item to context menu by adding the below highlighted line to .vsct file.
<Groupguid="guidHelloVSExtensionCmdSet"id="MyMenuGroup"priority="0x0600">
<!--<Parent guid="guidSHLMainMenu" id="IDM_VS_MENU_TOOLS"/>-->
<!--<Parent guid="guidSHLMainMenu" id="IDM_VS_CTXT_ITEMNODE"/>-->
<Parentguid="guidSHLMainMenu"id="IDM_VS_CTXT_CODEWIN"/>
</Group>
The context menu "MyFirstVSExtension" is shown as below
I want to restrict my custom context menu item only to a test class (it can be a unit test class or a coded ui class). So how can i recognize the type of class that i am right clicking to bring the context menu. Also, i would like to know if i am bring the context menu from a test method or from outside the test method. Thanks in advance!!!
Thanks, Pratap