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

Support csproj-based projects #18

Closed cmeeren closed 7 years ago

cmeeren commented 7 years ago

When the test project is csproj-based, the boilerplate generator does not seem to recognize the testing/mocking frameworks.

Workaround: Use the "Unknown" mock framework template. It's not perfect (the using statements are wrong), but gets you 90% of the way while waiting for a fix.

RandomEngy commented 7 years ago

I tested the behavior using csproj-based test projects. Can you share your test csproj? There may be a bug.

cmeeren commented 7 years ago

Sorry, I've moved on from this now. You may close it if you wish.

RandomEngy commented 7 years ago

I think your issue will be fixed in the upcoming release, but there are a few other issues tracking it.