Let's put it in this way, R# should NOT mark classes decorated with TFA and methods decorated with TestAttribute (at least, since those are the once usually supported by common testing frameworks), as unused.
Andrey Serebryansky Support Engineer JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!"
Let's put it in this way, R# should NOT mark classes decorated with TFA and methods decorated with TestAttribute (at least, since those are the once usually supported by common testing frameworks), as unused.
ReSharper doesn't support MbUnit out of the box, so it doesn't known that MbUnit's TestFixture and Test attributes designate tests. In order to tell ReSharper that methods and classes marked with those attributes are actually used you should add a MbUnit.xml file to
Add other attributes as well if needed. Thank you!
Andrey Serebryansky Support Engineer JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!"
Yes. This way you add an external annotation that tells ReSharper that TestFixture and Test attributes are marked with MeansImplicitUse attribute from JetBrains.Annotations. Thanky you!
Andrey Serebryansky Support Engineer JetBrains, Inc http://www.jetbrains.com "Develop with pleasure!"
Let's put it in this way, R# should NOT mark classes decorated with TFA and methods decorated with TestAttribute (at least, since those are the once usually supported by common testing frameworks), as unused.
Hello Simone,
Which test framework do you use? Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
MbUnit 2.x
Hello Simone,
ReSharper doesn't support MbUnit out of the box, so it doesn't known that
MbUnit's TestFixture and Test attributes designate tests. In order to tell
ReSharper that methods and classes marked with those attributes are actually
used you should add a MbUnit.xml file to
Add other attributes as well if needed. Thank you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Do you mean using the annotations feature?
Hello Simone,
Yes. This way you add an external annotation that tells ReSharper that TestFixture
and Test attributes are marked with MeansImplicitUse attribute from JetBrains.Annotations.
Thanky you!
Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"