Closed OJacot-Descombes closed 4 years ago
What kind of unit tests would you write for a struct?
Structs can have constructors and methods (in my specific case a Deconstructor). So, why not test them as I would for a class? Think of the System.Drawing.Rectangle
struct. It has quite a complex implementation.
So they do. I had always used classes when needing methods, etc. I'll look into it.
Fixed in 2.3.0
Installed product versions
Description
Throws exception "InvalidOperationException: Could not find class declaration." when trying to generate unit test for a struct. I assume this is a current limitation. In this case consider this to be a feature request.
Steps to recreate
Current behavior
Throws exception "InvalidOperationException: Could not find class declaration."
Expected behavior
Should generate unit test.