I want to create a common unit test function to check all functions based on parameter
- by Nilesh Rathod
I want to create a common unit test function to check all functions based on parameter
for e.g
commonmethod(string methodname,string paramter1,....)
{
....
}
what logic should i write inside this method so that by passing a actual function in parameter methodname and then the common method should execute that function and should return the output.
i am using entity framework for all functions which has been created in my project and now i dont want to create a separate unit test function for each function.just one function should do the job based on different parameters...
is that possible.. ?, if so then please provide me an code for same..
Thanks in advance..!!!