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

Implement c# 9 record support #11

Closed 304NotModified closed 3 years ago

304NotModified commented 3 years ago

Should fix #6

untested! I cannot use records in the https://github.com/RandomEngy/UnitTestBoilerplateGenerator/blob/master/Sandbox/Classes/Classes.csproj project?

RandomEngy commented 3 years ago

A couple ideas:

1) Update Classes.csproj to be .NET Standard. Ideally all example projects would be able to reference it 2) If that doesn't work, add another .NET 5 project that includes most of the same files. The "records" example could be included in the new project but not in the old.

RandomEngy commented 3 years ago

C# 9 record support is checked in and released with 2.5.7.

304NotModified commented 3 years ago

great!