microsoft / UnitTestBoilerplateGenerator

An extension for Visual Studio that generates a unit test boilerplate from a given class, setting up mocks for all dependencies. Supports NUnit, Visual Studio Test, Moq and SimpleStubs.
MIT License
158 stars 51 forks source link

Getting error while generating test cases #57

Closed neelesh02784 closed 3 years ago

neelesh02784 commented 3 years ago

Installed product versions

Current behavior

When I am creating test cases by right click on the file and click on"Create Unit Test For Boilerplate" the test file is generated but it is asking to add Visual studio or any of the desired test framework reference. Please find attachment herewith for your reference.

Expected behavior

It should generate the test case without asking to add the reference of any of the framework BoilerPlate

RandomEngy commented 3 years ago

Generally you create a separate test project to contain your tests, and set it up with whatever test framework and mock framework you want to use. This tool will generate tests for you but it's not in the scope of the extension to set up test projects for you.