I have a NUnit test in which I'm trying to read the testdata from rows in an excel file. My NUnit test is quite simple for this example and is below
public void CompleteFormTestDataSource4(String username, String password)
LoginPageObject pageLogin = new LoginPageObject();
EAPageObject pageEA = pageLogin.Login(username, password);
My method to read the excel rows using linqToExcel is below
public static IQueryable<LinqToExcel.Row> linqTesting2()
var excel = new ExcelQueryFactory(Constants.testDataPath4);
var testcases = from c in excel.Worksheet("Sheet1")
where c["UserName"] == "SonjaB"
To use the row data in my unit test do I need to somehow convert it to a IEnumerable<string> before it gets returned to the test. If so any ideas on how to do this would be appreciated. When I ran the test the only error I get is I need to pass the correct amount of parameters.