Replies: 1 comment 2 replies
-
A very common question is: "Why can't I see my individual data rows in Test Explorer?" The answer to that is always "you have test data that's not serializable". The purpose of this analyzer (and the other three related rules xUnit1044/xUnit1045/xUnit1046) is to highlight to people when this is the case, so they can stop asking us to figure it out for them. 😄 They are set to INFO level, so they do so non-intrusively. If this isn't a problem you have/want to solve, you should disable the rule(s). |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Dear @bradwilson ,
In several of our projects, the analyzer warning
xUnit1047
(Avoid using TheoryDataRow arguments that might not be serializable) recently popped up.The docs recommend to implement the interface
IXunitSerializable
. However, it seems strange to me to clutter a type's contract with a test-platform-specific signature 🤔 but I'm probably missing something, so it would be cool if you could elaborate a bit on the idea behind it.Thx!
Beta Was this translation helpful? Give feedback.
All reactions