コード例 #1
0
ファイル: RepresentationTest.cs プロジェクト: jewer/RestMvc
        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"));
        }