In v2 and non-AOT v3, test cases must be serializable. There should be an analyzer to trigger when this isn't done.
Note that in v3, the test case might not be directly serializable, since serialization might be handled by an "external" serializer that implements IXunitSerializer rather than the test case itself implementing IXunitSerializable.
From #3528
In v2 and non-AOT v3, test cases must be serializable. There should be an analyzer to trigger when this isn't done.
Note that in v3, the test case might not be directly serializable, since serialization might be handled by an "external" serializer that implements
IXunitSerializerrather than the test case itself implementingIXunitSerializable.From #3528