Starting from NUnit 3.x, the TestCaseSource or ValueSource attribute argument representing the name of the source must refer to the static field, property or method. For example:
publicclassMyTestClass{[TestCaseSource("DivideCases")]publicvoidDivideTest(int n,int d,int q){
Assert.AreEqual(q, n / d);}staticobject[] DivideCases ={newobject[]{12,3,4},newobject[]{12,2,6},newobject[]{12,4,3}};}