Skip to content

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

@lucasteles

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

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