resharper-xunit icon indicating copy to clipboard operation
resharper-xunit copied to clipboard

Problem analyser for ClassData, MemberData, PropertyData

Open citizenmatt opened this issue 10 years ago • 1 comments

Ensure that the type/field/property/method being referenced has the correct signature.

  • [ ] ClassData requires a class that implements IEnumerable<object[]>
  • [ ] MemberData requires a static field, property or method that returns IEnumerable<object[]>
  • [ ] If calling a method, the parameters can be passed to the MemberData attribute.
  • [ ] PropertyData requires a public static property of type IEnumerable<object[]>

citizenmatt avatar Nov 02 '15 15:11 citizenmatt

In my case all these requirements are met. But runner can't correctly execute and display all my memberData tests. It shows only one test without cases, execute its and draw green check, even if one test failed. During process it even print exception to runner output. But if i create separate solution and copy tests to it with remove all other tests except this memberData test and then execute, runner show all cases correctly including failed tests. The same with class data. I suppose this bug has to do with the lack of memory for analizis due to a large count of tests in my solution or having many memberData tests in one class

pavel-flyagin avatar Oct 09 '17 06:10 pavel-flyagin