In the following code, I get the following warning:
The variable 'Result' is assigned but its value is never used
bool Result; base.ExecuteTest(delegate(Selenium.ISelenium sel1) { return Result = false; }); Furthermore, in the following code:
for (int i = 0; i <= ClientSiteCnt; ) { return (Result = testcaseDel.Invoke()); } The delegate signature is
public delegate bool TestCaseDelegate(Selenium.ISelenium sel); How do I add the parameter (the delegate's parameter) in the .Invoke() method?