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)); }
public void CreateAUrlModelBinderInstance() { var urlBinder = new UrlBinder(); Assert.IsInstanceOf<IModelBinder>(urlBinder); }