Posso eseguire i miei test WatiN con ReSharper senza problemi. Ogni test ha l'attributo RequiresSTA e funziona correttamente.I metodi SetUp e TearDown richiedono [RequiresSTA] se i test lo hanno?
Quando provo eseguire tutti i test della classe (TestFixture) ottengo il seguente errore:
One or more child tests had errors
Exception doesn't have a stacktrace
<testname> ignored: Invalid signature for SetUp or TearDown method: TestSetup
<testname> ignored: Invalid signature for SetUp or TearDown method: TestSetup
<testname> ignored: Invalid signature for SetUp or TearDown method: TestSetup
L'errore non indica che cosa ho bisogno di cambiare per farlo funzionare.
Se si selezionano tutti i test che sono stati ignorati nella finestra Sessioni di test unità, è possibile eseguirli senza problemi.
Cosa devo modificare per consentirmi di eseguire tutti i test in TestFixture?
Questo sembra essere un problema in ReSharper 9 che questa stessa soluzione sembra risolvere. –
'protected' funziona anche. –