I suggest you ...

Add "Create Unit Tests" menu option back!

Add "Create Unit Tests" menu option to automatically create unit test skeletons for methods and namespaces as it was in VS 2010!

987 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    AnonymousAnonymous shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    CSharpJohnCSharpJohn shared a merged idea: bring back the "Generate Unit Test" Wizard  ·   · 

    61 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...
      • Ed ChavezEd Chavez commented  ·   ·  Flag as inappropriate

        @kohler: Nope, that's not exactly correct. While you can get the menu thing working it doesn't really work as it used to identically. Even with the hoops described. Yes, it will work, sometimes - of particular note is how it has issues with InternalsVisibleTo....

      • Ed ChavezEd Chavez commented  ·   ·  Flag as inappropriate

        Bonehead move IMHO. Sure I've learned how to create unit tests from documentation and through a series of StackOverflow and Google searches was able to get the contextual menu working or rather, partially/buggy way. One thing that is inconsistent is the InternalsVisibleTo attribute. It works with the new model, but the contextual (right click + create unit test) doesn't - it no longer identifies/finds this setting - either in source (class) or assemblyinfo config file.

        So sure, I've gotten the "new" model working, *manually*. Yes, I know..."new" and "manual", awesome step forward...takes the cake for contradictory statements....

        Spent max votes (3) on this.

      • Anonymous commented  ·   ·  Flag as inappropriate

        This is a great feature, would like to see it add back into VS2012.

      • Michael FreidgeimMichael Freidgeim commented  ·   ·  Flag as inappropriate

        Could you provide any links describing ALM ranger's project: Better Unit Testing with Test Code Generation?

      • DawaDawa commented  ·   ·  Flag as inappropriate

        Finally, a new project for Better Unit Testing! Hope to see this in the next update!

      • Anonymous commented  ·   ·  Flag as inappropriate

        Removing this great function was the was among the daftest things I've experienced from Microsoft.

      • whoeverwhoever commented  ·   ·  Flag as inappropriate

        Sounds like it's just a matter of time before M$ push everyone over the cliff and heading for the Linux/Java/Eclipse world. If Steve hasn't kill Bill, Ballmer will surely finish the Jobs.

      • PaulPaul commented  ·   ·  Flag as inappropriate

        This is driving me crazy, and the keyboard shortcut workaround mentioned previously for some reason stopped working for me and I can't get it to work again. Please just put it back already.

      • Brian SwigerBrian Swiger commented  ·   ·  Flag as inappropriate

        I wouldn't mind having this back in VS 2012. I thought about creating a Powershell script that would add this back based on the StackOverflow posting as a basis.

      • Bas HamerBas Hamer commented  ·   ·  Flag as inappropriate

        this apparently was my favorite feature as I spend most of my night trying to get it back. the work around refuses to work for me.
        Bringing back the functionality for public classes and methods would probably fix 90% of the grief.

        If you want to play nice then you can allow people to edit the T4 file that you use for generation to wire against an other framework.

      ← Previous 1 3 4

      Feedback and Knowledge Base