xUnit1045 even with defined serializer

Hi all

Using xUnit v3 for context.

I have a few tests that accept test data via ClassDataAttribute. The referenced class implements TheoryData<Type, Type, MethodBase>. This results in xUnut1045 being raised on the ClassDataAttribute saying that MethodBase may not be serializable. This is fine, but it doesn't enumerate in my test explorer.

I have implemented a MethodBaseSerializer type which implements IXunitSerializer, but this behavior remains unchanged.

I do get the appropriate serialized text in the test detail summary, but I'd like the tests to be properly enumerated within the test explorer as well.
Was this page helpful?