xUnit1016 warnings since 2.4.2 - can't find changelog #2563
-
For some reason, we get xUnit1016 "MemberData must reference a public member" errors since xUnit 2.4.2 (and not in 2.4.1) Those errors are correct, in the way that the MemberData where indeed not But i'm confused;
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 12 replies
-
Private MemberData should never have worked in 2.4.1. The error message was poor, but it definitely fails: Making it public allows the data to be run: |
Beta Was this translation helpful? Give feedback.
-
I've just hit a similar issue after upgrade. The member data method was internal. (Because it was returning an instance of a type being tested which was itself internal so couldn't be public.) We started getting xUnit1016 after upgrading to 2.4.2. |
Beta Was this translation helpful? Give feedback.
Private MemberData should never have worked in 2.4.1. The error message was poor, but it definitely fails:
Making it public allows the data to be run: