"Empty Constructor Is Redundant" warning Follow
I get this warning highlight on my unit test classes. We have a wrapper
around the basic NUnit stuff (and I'm not using your nunit test runner just
yet), but this error pops up... however, if I remove the empty constructor,
then nunit cannot run the tests, saying that the class must have a public
constructor.
So this warning seems to be in error, imho. At least for this set of
classes (unit test classes). It's not redundant, it's required or the unit
test gui finds no test cases to run and apparently cannot instantiate the
class to run it. Or something. At any rate, something isn't right here.
Please sign in to leave a comment.
Thank you for the report.
I will think on how we could fix this.
As a workaround, you could turn this warning off
--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Paul Bradshaw" <pbradshaw@advsol.com> wrote in message
news:dc6g5l$4dd$1@is.intellij.net...
>I get this warning highlight on my unit test classes. We have a wrapper
>around the basic NUnit stuff (and I'm not using your nunit test runner just
>yet), but this error pops up... however, if I remove the empty constructor,
>then nunit cannot run the tests, saying that the class must have a public
>constructor.
>
>
>