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

New symbols: $InterfaceNameShort$, $InterfaceNameShortLower$, $Interf… #20

Closed krzychuwr1 closed 6 years ago

krzychuwr1 commented 7 years ago

…aceNameBaseShort$, $InterfaceNameBaseShortLower$, $InterfaceMockNameShort$, $InterfaceMockNameShortLower$

This resolves issue: #17 #

RandomEngy commented 7 years ago

I don't think the "Short" ones make a lot of sense here. The code you're calling will for example change "LoggingService" to "Service", which isn't what we want to happen when we're trying to come up with unique variable names for the mock fields.

RandomEngy commented 6 years ago

Ability to change tokens to camelCase has been added in another checkin: https://github.com/Microsoft/UnitTestBoilerplateGenerator/wiki/Custom-Format-Tokens