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
Post a Comment