TDD a controller with ASP.NET MVC 2, NUnit and Rhine Mocks

Posted by Nissan Fan on Stack Overflow See other posts from Stack Overflow or by Nissan Fan
Published on 2010-03-24T17:25:59Z Indexed on 2010/03/24 18:13 UTC
Read the original article Hit count: 215

Filed under:
|
|
|

What would a simple unit test look like to confirm that a certain controller exists if I am using Rhino Mocks, NUnit and ASP.NET MVC 2? I'm trying to wrap my head around the concept of TDD, but I can't see to figure out how a simple test like "Controller XYZ Exists" would look. In addition, what would the unit test look like to test an Action Result off a view?

© Stack Overflow or respective owner

Related posts about nunit

Related posts about rhino-mocks