Skip to content

NUnit analyzer emits NUnit1027 error on Property tests with arguments #623

Description

@lucasteles

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions