Break this test

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)

One thought on “Break this test

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s