This sounds like what Teardown does except that it's limited to a particular Assert. Could also be implemented using an ActionAttribute.
Charlie On May 9, 2013 9:30 PM, "Christian Ang" <c...@student.neumont.edu> wrote: > Public bug reported: > > This feature is to allow you to add a callback method when you assert, > that would run right before the test fails. This would allow you to > perform your own logging when an assert fails, clean up anything the > test did (such as a database connection), etc. > > ** Affects: nunitv2 > Importance: Undecided > Status: New > > -- > You received this bug notification because you are subscribed to NUnit > Extended Testing Platform. > https://bugs.launchpad.net/bugs/1178412 > > Title: > Add callback support to Asserts > > To manage notifications about this bug go to: > https://bugs.launchpad.net/nunitv2/+bug/1178412/+subscriptions > -- You received this bug notification because you are a member of NUnit Developers, which is subscribed to NUnit V2. https://bugs.launchpad.net/bugs/1178412 Title: Add callback support to Asserts Status in NUnit V2 Test Framework: New Bug description: This feature is to allow you to add a callback method when you assert, that would run right before the test fails. This would allow you to perform your own logging when an assert fails, clean up anything the test did (such as a database connection), etc. To manage notifications about this bug go to: https://bugs.launchpad.net/nunitv2/+bug/1178412/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~nunit-core Post to : nunit-core@lists.launchpad.net Unsubscribe : https://launchpad.net/~nunit-core More help : https://help.launchpad.net/ListHelp