Closed DanielSchuessler closed 3 years ago
Many thanks for reporting
have you given any thoughts on what to present in the output? perhaps a general exception filter can be provided so you have a fighting chance of either failing (as the current behavior) or implement your own kind of output given knowledge of the field type.
This has been fixed in ReassureTest - the next generation StatePrinter https://github.com/kbilsted/ReassureTest.Net/commit/22322d72581b810410c8ea2eb6ffeede9380423b
StatePrinter version: 3.0.1
Throws:
Possible fixes (not mutually exclusive):
GetEnumerator()
(possibly slow)ImmutableArray<>
having this behavior (in this case, check theIsDefault
property)IEnumerable
value types for equality to the default value (but theirEquals
implementation often throws too; would probably need an unsafe "raw" equality test)