TDD a controller with ASP.NET MVC 2, NUnit and Rhino 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 20:23 UTC
Read the original article Hit count: 563

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