user666442
user666442

Reputation: 63

NUnit doesn´t run my new Tests

My new tests in NUnit appears in Tests List in a blue font. And I can´t run it.

This is que list. enter image description here

And this is my class. I can´t find anything wrong or even diferent from other test classes.

enter image description here

Please! Do someone knows what is happening?

Upvotes: 4

Views: 910

Answers (3)

AlG
AlG

Reputation: 15157

Last I used NUnit your test classes needed to be public. Your EmailBaseGerar doesn't specify that it is public, and is getting defaulted to internal.

Upvotes: 3

Nick Ryan
Nick Ryan

Reputation: 2670

Do you need to decorate the testfixture with a category that is included in your nunit console? Also, no harm to make the test fixture class public.

Upvotes: 1

jrummell
jrummell

Reputation: 43077

Your test fixture class is not public. If you don't specify public class YouClass, YourClass will be internal, and not runnable by NUnit.

Upvotes: 9

Related Questions