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
Allow lower-case field names for generated mocks #17
According to standard naming rules, the mock field names should start with lowercase. For example, if a dependency has the name IFoobar, the test class field name for that dependency will currently be Foobar, while it should be foobar.
I therefore suggest you facilitate this somehow, e.g. by adding a token $InterfaceMockNameLower$ or simply changing the casing rules for these fields.
According to standard naming rules, the mock field names should start with lowercase. For example, if a dependency has the name
IFoobar
, the test class field name for that dependency will currently beFoobar
, while it should befoobar
.I therefore suggest you facilitate this somehow, e.g. by adding a token
$InterfaceMockNameLower$
or simply changing the casing rules for these fields.