I want to create a common unit test function to check all functions based on parameter
Posted
by
Nilesh Rathod
on Stack Overflow
See other posts from Stack Overflow
or by Nilesh Rathod
Published on 2010-12-23T07:01:41Z
Indexed on
2010/12/23
9:54 UTC
Read the original article
Hit count: 283
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..!!!
© Stack Overflow or respective owner