chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
private void MonitorDBOffline()

        {

        ... Do Stuff

}

Test Method(){

...setup

 Isolate.Invoke.Method(c, "MonitorDBOffline", null);

}

This test method results in the error:

No overloads of method "MonitorDBOffline" receive argument types {Object}

Possible candidates are:

- MonitorDBOffline()

How can I use the Invoke method with no parameteres.

Thanks,
asked by Mark (4.1k points)
edited by Mark

1 Answer

0 votes

It's really simple. try the following 


Isolate.Invoke.Method(c, "MonitorDBOffline");

answered by David (1.9k points)
...