This is my method..
public ActionResult PowerTrainConditionReview()
    {
        ViewData["id"] = RouteData.Values["id"];
        return View();
    }
How should i write a unit test for return view when the method contains Viewdata in it...?
I tried something like this
 [Test]
    public void ShouldRenderPowerTrainConditionReview()
    {
        sut.WithCallTo(x => x.PowerTrainConditionReview()).ShouldRenderDefaultView();
    }
System.NullReferenceException : Object reference not set to an instance of an object.
before return view statement this exception is thrown
