Your extension will be available shortly on the Visual Studio Marketplace at this link.

Unit Test Generator


Generates unit test code for methods in classes under test.

3.6 Star
Visual Studio
2013, 2012
Download (136,856)
E-mail Twitter Digg Facebook
Add to favorites
Sign in to write a review
Sort by:

5 Star
by Marcio Otta | September 26 2016

1 Star
by Jonathan Brant | July 24 2016

Doesn't function in Visual Studio 2013 (no context menu selection).

5 Star
by keyboard.jockey | December 31 2015

Great tool, love it! Would be nice if you could set to target "first test project" or something in the global settings so that its not defaulting to new project every time but i can get over that easy :)

Thank you for filling the the void that Visual Studio left. Sorry to see this go in Visual Studio 2015. even though it was added in as a feature for 2015 you guys may have been able to make a much better product than the out of the box feature.

1 Star
by Andrej Br | November 16 2015

I have only setting menu of the tool, nothing more.
VS 2013

2 Star
by Duduman Bogdan Vlad | October 16 2015

Won't be any support for Visual Studio 2015?

2 Star
by Chaoskie | September 14 2015

For some reason I get the "Unable to install due to missing .NET framework". I did follow the steps in Q&A, this didn't solve the problem. I tried enabling the older .NET packages, although this didn't give any solution.

If anyone knows what might be the issue and how to resolve it, let me know.
It work with visual studio 2013, latest version on Windows 10 OS .NET is also latest version.

3 Star
by chandrakopparthi | August 20 2015


I am not able to install Unit Test Generator. I have visual studio 2013 Ultimate on Windows 10.
I am always getting "Required .NET Framework version is not installed error" ;and not able to proceed further to install the Unit Test Generator.

I have tried the solutions provided in the Q&A, close the visual studio, download vsix and install, this is not working for me.

I have tried on other box also, the same issue.

Could you provide a way to install Unit Test Generator?


3 Star
by Farukh Sharipov | June 23 2015

Is it possible for simple function(s) such as:

public bool Foo(double x, double y)
return x == y;

that Unit Test Generator would check function signature and create unit test for you such as.

public void FooTest()
double x = 1;
double y = 2;
SomeObj = new SomeObj();
bool result = SomeBj.Foo(x, y);


At first just support simple functions and classes
This would bring Unit Test Generator to next level.

1 Star
by killerkenshin | June 16 2015

'require a version of the .NET Framework that is not installed'. But I don't know which version!

4 Star
by Ziv Nitzan | May 28 2015

Works Great.
Needs support for internal classes too.

1 Star
by leeeeeee | April 29 2015

yeah,very terrible tool
always create now project to unit test?

4 Star
by Tak1wa | April 09 2015

This extension is very good. I was looking for this feature of Visual Studio 2010.
I have a request. And automatic extraction of Private method, I want you to be able to create stub by Reflection.

3 Star
by MaxKeystroker | March 13 2015

Sorry, had to deduct 2 stars...

- Lack of support for internal classes, that was supported in the original VS functionality (along with setting the internalsvisibleto() attribute)

- The unit test created required renaming.

I know creating a true unit test generator is impossible... you should be creating the unit test first. But it would be nice if the code exist, creating tests based on symbols, known patterns, ect. Support for WF unit testing would be nice as well.

5 Star
by TomEnglert | February 19 2015

Works great!

4 Star
by TayBill | January 16 2015

Another thumbs up to test internal methods.

5 Star
by dheijl | November 14 2014

Works as advertised for me. Thank you!

5 Star
by 齐李平 | November 10 2014

A tool is very useful, but does not support Xunit2.0 beta

5 Star
by Shimmy Weitzhandler | October 08 2014

5 Star
by ssathya62 | October 01 2014

Love this. Use it all the time.

5 Star
by Grant Duan | September 02 2014

it's usefull

1 - 20 of 57 Items   
Sign in to start a discussion

  • Not quite ready to be obsolete
    2 Posts | Last post August 01, 2016
    • Unfortunately this feature was only brought back in VS 2015 for C# so this extension is still totally relevant for VB users.
      It would really help if you could get this back online and working with 2015.
      Thank you very much from a very frustrated developer, someone keeps moving my cheese :)
    • I would like this plug in for VS 2015, VB.NET.
      Keep it, please!
  • Can we use this unit test Generator tool for the WCF
    1 Posts | Last post April 08, 2016
    • Hi,
      We have a project with WCF SOAP services  & REST services.
      Which tool is the best to implement the unit test cases.
      Kindly Advice.
  • Installation fails fro version 1.3 .14510
    1 Posts | Last post December 17, 2015
    • I have tried to install the extension with VS 2013 Premium SP4. I really do appreciate getting this product for free. 
      The installation failed spectacularly with a funny error message something like .NET version not installed. It is funny because the message makes now sense 
      Letting people know what version is required to run this product will definitely help.
      As someone already mentioned before, Update 5 for VS 2013 might resolve the installation issue.
  • Install problem
    2 Posts | Last post December 11, 2015
    • Which .Net version is required to install Unit Test Generator. I am using VS 2013 and i go Tools -> Extensions and updates -> Download & install from there, but I have error showing up "The extension 'Unit Test Generator' requires a version of .Net framework which is not installed".
      P.S. I have them all installed on PC :) 
    • I'm running my VS 2013 on Windows 10
  • PLEASE update tor VS2015
    3 Posts | Last post December 02, 2015
    • I use this extension frequently and I would really like to be able to use it in VS2015 and not have to switch back and forth between 2013 and 2015 to get my unit tests generated.
    • The Unit Test feature is part of the product again with 2015, which is why this extension will not be updated.
    • Too bad the feature just got implemented for C# projects, not for projects.
  • No menus
    2 Posts | Last post September 24, 2015
    • I have installed the latest version and the installation worked "perfectly" (meaning there was no errors). But I'm missing the essential menus!
      Under the Test menu I have Configure Unit Test Generation... but nothing more. 
      If I  right-click on a public function I get the popup menu but there is no alternative for creating a test (or any alternative for Unit Test Generation)
      Everything looks OK, except for the fact that I can't access it!
      What is wrong and how do I fix it?
    • I browsed through the discussion and found the answer!
      The Extension ONLY works on **Class Libraries!!!**
      Seems like a "stupid" restriction, but ...
      Sorry for the noise!
  • .NET install error
    1 Posts | Last post September 14, 2015
    • For some reason I get the "Unable to install due to missing .NET framework". I did follow the steps in Q&A that I found regadering this problem, this didn't solve the problem. I tried enabling the older .NET packages, although this didn't give any solution. 
      If anyone knows what might be the issue and how to resolve it, let me know.
      It work with visual studio 2013, latest version on Windows 10 OS .NET is also latest version.
  • install Unit Test Generator failes
    3 Posts | Last post August 31, 2015
    • log:
      正在开始将扩展安装到 Microsoft Visual Studio Ultimate 2013...
      2015/8/4 15:50:38 - 安装错误: Microsoft.VisualStudio.ExtensionManager.MissingTargetFrameworkException: 扩展“Unit Test Generator”需要的 .NET Framework 版本没有安装。
    • I was facing the same situation and I solved it by: 1 close VS; 2 download the extension file(vsix); 3 installed it.
      then you open VS and will find the Generate Unit Test option.
    • This install continually failed for me on Windows 10 indicating I did not have the required .Net framework installed. I tried closing VS and installing the vsix file by directly executing the downloaded file, but this still failed.
      I eventually got this to work by installing the VS 2013 Update 5 package. Then I was able to install the vsix file without any further errors.
  • Installing failure about .netfrmework
    3 Posts | Last post August 10, 2015
    • When i installed the GenerateUnitTest.vsix into Visual Studio Ultimate 2013, there was an installing failure:          扩展 “Unit Test Generator” 需要的.NET Framework版本没有安装。  
      Is there any nice friend giving a solution, very thanks!
    • I had done the three steps as killerkenshin said, there was still have the same issue...
      3 steps: 1 close VS; 2 download the extension file(vsix); 3 installed it.
    • 2015/8/10 19:20:02 - Microsoft VSIX Installer
      2015/8/10 19:20:02 - -------------------------------------------
      2015/8/10 19:20:02 - Initializing Install...
      2015/8/10 19:20:02 - 扩展详细信息...
      2015/8/10 19:20:02 - 	Identifier      : 13373ac4-7f04-4c7e-a9a7-2bd33349b323
      2015/8/10 19:20:02 - 	Name            : Unit Test Generator
      2015/8/10 19:20:02 - 	Author          : Visual Studio ALM Rangers
      2015/8/10 19:20:02 - 	Version         :
      2015/8/10 19:20:02 - 	Description     : Generates unit test code for methods in classes under test.
      2015/8/10 19:20:02 - 	Locale          : en-US
      2015/8/10 19:20:02 - 	MoreInfoURL     :
      2015/8/10 19:20:02 - 	InstalledByMSI  : False
      2015/8/10 19:20:02 - 	SupportedFrameworkVersionRange : [4.5]
      2015/8/10 19:20:02 - 
      2015/8/10 19:20:03 - 	SignedBy        : Microsoft Corporation
      2015/8/10 19:20:03 - 	Certificate Info : [Subject]
        CN=Microsoft Corporation, OU=MOPR, OU=OPC, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
        CN=Microsoft Code Signing PCA, O=Microsoft Corporation, L=Redmond, S=Washington, C=US
      [Serial Number]
      [Not Before]
        2014/4/23 1:39:04
      [Not After]
        2015/7/23 1:39:04
      2015/8/10 19:20:03 - 	支持的产品           : 
      2015/8/10 19:20:03 - 		Microsoft.VisualStudio.Pro
      2015/8/10 19:20:03 - 			Version : [11.0,13.0)
      2015/8/10 19:20:03 - 
      2015/8/10 19:20:03 - 	引用              : 
      2015/8/10 19:20:03 - 		-------------------------------------------------------
      2015/8/10 19:20:03 - 		Identifier   : Microsoft.VisualStudio.MPF.11.0
      2015/8/10 19:20:03 - 		Name         : Visual Studio MPF 11.0
      2015/8/10 19:20:03 - 		Version      : [11.0]
      2015/8/10 19:20:03 - 		MoreInfoURL  : 
      2015/8/10 19:20:03 - 		Nested       : No
      2015/8/10 19:20:03 - 
      2015/8/10 19:20:03 - 
      2015/8/10 19:20:03 - 正在搜索适用的产品...
      2015/8/10 19:20:03 - 找到的已安装产品 - Microsoft Visual Studio 2010 Professional
      2015/8/10 19:20:03 - 找到的已安装产品 - Micro
  • Version for VS 2015
    2 Posts | Last post July 26, 2015
    • Any chance to get version for VS 2015 preview?
    • The feature has been rolled into VS2015 and we therefore have no plans to enhance this extension or support it on 2015.
1 - 10 of 55 Items