Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello,

I am starting to write unit tests for my web application. I am confused in choosing the best mocking framework for it. I am using DevExpress controls all through my application and unfortunately they don't have a mocking framework. What is the best mocking framework that i can use ?

Please suggest.


Thanks,
Surya
Posted
Comments
Mehdi Gholam 11-May-15 9:25am    
What technology/platform?
gsdvenkatesh 11-May-15 9:35am    
Mine is an ASP.Net Web Application written in C#.
Mehdi Gholam 11-May-15 9:38am    
Search for "asp.net mocking" and take you pick of the results.
gsdvenkatesh 11-May-15 9:50am    
Please read my question again. I didnt ask for the list of mocking frameworks. I asked for a suggestion as to which one is better.
Mehdi Gholam 11-May-15 9:53am    
"Better" means different things to different people, you really have to define what you want.

 
Share this answer
 
Most people use moq or rhinomock. Moq probably edges it for me, the main difference is in the syntaxes and what seems to make more sense to you. What's more important that which one you choose is that you fully get to grips with how you use it to mock various things, they're all much of a muchness really.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900