You can only get Statistics and other Report objects from the context of the
test runner itself, not from within the tests.
 
However within the tests you can read TestContext.Current.Outcome during
TearDown or Dispose to determine whether the test passed or failed.
 
Jeff.

  _____  

From: [email protected] [mailto:[email protected]] On
Behalf Of Bruno Wouters
Sent: Monday, June 29, 2009 2:39 AM
To: 'MbUnit.User'
Subject: MbUnit Test count



Hi all,

 

I'm trying to get the test count (excl skipped) when my custom log4net
appender is being closed. I saw that there is a Statistics class but how can
I access the instance of it?

 

Thanks!

 

Greets,

Bruno





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MbUnit.User" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/MbUnitUser?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to