OpenPetra
Free Administration Software for Non-Profits
|
To be used with NUnit to faciltate checking of Events - if they are getting raised and if they aren't getting raised. More...
Public Member Functions | |
TNUnitEventHandlerCheck () | |
Constructor More... | |
void | ResetCheck () |
Use this to re-use the same instance of TNUnitEventHandlerCheck for multiple checks. More... | |
void | Handler (object sender, TEventArgs e) |
Subscriber/consumer of the Event that should be tested. More... | |
Properties | |
object | Sender [get] |
Sender of the Event. More... | |
TEventArgs | EventArgs [get] |
EventArgs of the Event. More... | |
bool | EventGotRaised [get] |
True if the Event got raised, false if it did not get raised. More... | |
To be used with NUnit to faciltate checking of Events - if they are getting raised and if they aren't getting raised.
To be used in connection with Class TNUnitEventAsserter.
TEventArgs | : | EventArgs |
|
inline |
Constructor
|
inline |
Subscriber/consumer of the Event that should be tested.
Example: MyWidget.Firing += {your instance of TNUnitEventHandlerCheck}.Handler
sender | |
e |
|
inline |
Use this to re-use the same instance of TNUnitEventHandlerCheck for multiple checks.
|
get |
EventArgs of the Event.
|
get |
True if the Event got raised, false if it did not get raised.
|
get |
Sender of the Event.