public void ViewNameIncludesFormat() { var route = new RouteData(); route.Values["action"] = "action"; route.Values["format"] = "format"; var context = new ControllerContext { RouteData = route }; Assert.That(Representation.GetViewName(context), Is.EqualTo("action.format")); }