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

Doesn't let me choose NSubstitute #19

Closed grokky1 closed 7 years ago

grokky1 commented 7 years ago

Latest VS2017 Community x64. Latest extension. Using .NET Core.

I go to tools and select NSubstitute. I generate a test class The test class is for Moq instead of NSubstitute.

RandomEngy commented 7 years ago

Sorry for taking so long to get a look at this. It looks like the auto-detect is failing. Can you share the .csproj file you're using?

grokky1 commented 7 years ago

Was a while ago, but it was the standard csproj, basically from file->new project etc.

RandomEngy commented 7 years ago

In 1.5.12 I fixed an issue with the auto-detect code for .NET Core projects, and added a choice to override the test framework or mock framework when generating the class.