Twitter LinkedIn Github

JetBrains

Given the following action:

 

   1: public ActionResult About()
   2: {
   3:     return View();
   4: }
   5:  

and the following test:

   1: public void About()
   2: {
   3:     
   4:     // Arrange
   5:     HomeController controller = new HomeController();
   6:  
   7:     // Act
   8:     ViewResult result = controller.About() as ViewResult;
   9:  
  10:     // Assert
  11:     Assert.IsNotNull(result);
  12: }

 

Come up with as many way as you can to break the test.

(This is the default code generated with a new ASP.NET MVC application)