Hi,
is there a way for me to make sure my event in my class being tested is added to? For example, if the class I am tests has a method like:
I want to test when 1 is passed in to this method the handler (any handler) is attched to Myevent. Is this possible?
Thanks
Graham
is there a way for me to make sure my event in my class being tested is added to? For example, if the class I am tests has a method like:
public
void
Work(
int
count)
{
if
(count == 1)
{
MyEvent +=
new
MyHandler(handleEvent);
}
}
I want to test when 1 is passed in to this method the handler (any handler) is attched to Myevent. Is this possible?
Thanks
Graham