Multiple choice technology web technology

Unit Testing of Controller action methods are possible to test ?

  1. the view

  2. the view data returned

  3. the action result returned

  4. All of the above

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Unit testing in MVC allows testing all aspects of controller actions: the returned view, the ViewData dictionary, and the ActionResult type itself. This comprehensive testability is a key advantage of the MVC architecture.