FsCheck
FsCheck copied to clipboard
NUnit analyzer emits NUnit1027 error on Property tests with arguments
NUnit have an analyser package to help on common mistakes
One of them is when you expect arguments in an [Test]
, it gives the NUnit1027 error. It predicts that only [TestCase]
can have parameters.
So, as our PropertyAttribute
inherits from TestAttribute
the analyzer will accuse error
Workarounds:
- Shutdown the
NUnit1027
check
Would be good to not have this kinda error in a basic test setup
Isn't this a bug in the NUnit analyzer package?
Agree with @ploeh, there doesn't seem to be a concrete action we can take on the FsCheck side? Not inheriting from TestAttribute
is not an option.
Have you tried reporting this to the NUnit team?
Have you tried reporting this to the NUnit team?
No, I will open a similar issue there
@lucasteles When that's done, suggest posting a link here (or referencing this issue in the one you're logging) and closing this issue
See also: https://github.com/fscheck/FsCheck/issues/637