mattwhitfield / Unitverse

A unit test generation extension for Visual Studio that aims to always produce code that compiles - covering the basic cases automatically and preparing as much as it can for the complex cases.
MIT License
89 stars 20 forks source link

Mark test fields as readonly #253

Closed Kilazur closed 1 month ago

Kilazur commented 1 month ago

Is your feature request related to a problem? Please describe. When generating tests, I always have to mark all my fields as readonly manually.

Describe the solution you'd like I believe test fields (for mocks usually) should be readonly by default, as their references are not meant to change during the execution of tests.

mattwhitfield commented 1 month ago

This is included in 0.210 👍