My project requires Inputs from the User like clicking submit button , waiting for recording then again clicking some other button etc. so How can one do Unit Testing for such modules. I read a lot about Moq. does Moq satisfies this need.
Thanks
My project requires Inputs from the User like clicking submit button , waiting for recording then again clicking some other button etc. so How can one do Unit Testing for such modules. I read a lot about Moq. does Moq satisfies this need.
Thanks
You can also use Microsoft Coded UI Tests. Disadvantage is that you need at least Visual Studio (2012) Premium. Works fine in your projects.
Unit testing solves different kind of problem than what you're facing. Unit tests are supposed to exercise (small) units of code, not entire user interaction scenarios. In your case, you could have unit test which will veryify that submit button logic works as intended. Then another test for second button. Small parts of your code - not entire scenarios.
To test those (test interaction scenarios), you either need human testers or more complex tools, like Test Complete (which allows you to do just that; record user actions and verify results) or Sikuli.