예제 #1
0
        public void UrlBinderReturnsANewUrl()
        {
            var urlBinder = new UrlBinder();

            var routeData = new RouteData();
            routeData.Values.Add("url", "aaa/bbb/ccc/ddd/eee");

            Assert.IsInstanceOf<Url>(urlBinder.BindModel(new ControllerContext
            {
                RouteData = routeData
            }, null));
        }
예제 #2
0
 public void CreateAUrlModelBinderInstance()
 {
     var urlBinder = new UrlBinder();
     Assert.IsInstanceOf<IModelBinder>(urlBinder);
 }