c# - NUnit Test case creation -


i have created testsuits following.

 [testcase(12,4,3)]  [testcase(m,n,o)] public void dividetest(int n, int d, int q) {   assert.areequal( q, n / d ); } 

i have pass variables m = 10, n = 2 , o = 5.

but second test case not accessible. throws following error. "an attribute argument must constant expression, typeof expression or array creation expression of attribute parameter type"

how pass variables name instead of values in test case.

unfortunately, cannot pass variables test case unless constants.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -