public void The_url_is_set_is_returned()
        {
            var item = new UrlSubMenuItem("My Test Name", "Url1");

            var viewModel = item.GetViewModel(new ControllerContext());

            viewModel.Url.ShouldEqual("Url1");
        }
        public void The_name_is_set_is_returned()
        {
            var item = new UrlSubMenuItem("My Test Name", null);

            var viewModel = item.GetViewModel(new ControllerContext());

            viewModel.Name.ShouldEqual("My Test Name");
        }
        public void The_is_visible_returns_false_if_no_function_is_defined()
        {
            var item = new UrlSubMenuItem(null, null);

            var viewModel = item.GetViewModel(new ControllerContext());

            viewModel.Visible.ShouldBeFalse();
        }
        public void The_is_visible_returns_true_if_the_function_returns_true()
        {
            var item = new UrlSubMenuItem(null, null, context => true);

            var viewModel = item.GetViewModel(new ControllerContext());

            viewModel.Visible.ShouldBeTrue();
        }
        public void The_is_selected_returns_false()
        {
            var item = new UrlSubMenuItem(null, null);

            var viewModel = item.GetViewModel(new ControllerContext());

            viewModel.Selected.ShouldBeFalse();
        }