RandomEngy / 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, XUnit and many mock frameworks.
https://marketplace.visualstudio.com/items?itemName=RandomEngy.UnitTestBoilerplateGenerator
MIT License
64 stars 17 forks source link

Primary constructor support #37

Closed tomasKosar closed 9 months ago

tomasKosar commented 9 months ago

Support a new feature of Primary constructors from C# 12 https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-12#primary-constructors

SyntaxKind.ParameterList already exists and is used. In case of Primary constructor this structure is not inside class constructor but rather on the class itself.

Added class to test new functionality.

RandomEngy commented 9 months ago

Nice!

RandomEngy commented 9 months ago

Released in v2.7.5, should be published shortly.