Open JochemPalmsens opened 1 month ago
I just found this is a dupe of #905
Come on guys, this should have been a opt-in feature. You can't simply enforce things on people like this. I appreciate you providing this framework. But these kinds of things make people look for alternatives (or maybe that's a goal?). It should at least be well documented.
Describe the bug
Today I was looking into this StackOverflow issue I couldn't understand why this failed and blamed it on the code being incomplete. However, I could quite simply reproduce it (code at bottom). Somehow both values in the struct are initialized to the same value (Unknown). This is the default value (
(Assets)0
), as I modified the SO example by adding an additional enum value beforeAssets.BTC
I also modified the test to run on xUnit and there it ran fine.
Steps To Reproduce
Run the tests
Expected behavior
All tests pass (as xUnit does)
Actual behavior
2 tests (with the not null values) fail:![afbeelding](https://github.com/user-attachments/assets/f93a6058-4cb7-479c-b7b1-1ef8ccf76b39)
Additional context
Code: