C# NUnit 3 Data Driven from Excel
问题 Hello I have the following file: testexcel.xlsx > sheet 1 I want to execute this test twice as there are 2 rows with data. [Test] [TestCaseSource("Data")] public void Login(String username, String password) { loginPageModel.DoLogin(username, password); } How can I convert that excel data into this kind of data as explained in NUnit 3 official documentation? static object[] Data = { new object[] {username, password} }; 回答1: What i did is the following and it's working I have the Test: [Test