Unit Testing Trivalities?

time to read 4 min | 616 words

The following code is a MonoRail action. It doesn't do much, but relies on the framework to do most of its work.

public void ShowCustomerDetails([ARFetch("id")] Customer customer)

{

       if(customer==null)

              RenderSharedView("common/notfound");

       PropertyBag["customer"] = customer;

}

What are the arguments for/against testing this method directly?