Can I list all methods/properties that are only accessed from unit tests?

Using the code inspection tool I can get a list of all methods/properties that are not accessed within the solution.

However if there are unit tests around those items then those methods/properties are not shown as never being referenced.

Is it possible to have the code inspection (or something else if it gives the same result) ignore references made from unit test software, or even from specifically listed assemblies?

 

0
1 comment
Official comment

Hello Adam!

 

Thank you for contacting us.

There's no such option currently. Corresponding feature request is reported in our issue tracker - https://youtrack.jetbrains.com/issue/RSRP-196543. 

You are welcome to comment or vote for it.

Thank you.

Please sign in to leave a comment.