Exemple #1
0
        public void does_not_attach_a_view_if_no_filters_find_a_match()
        {
            _viewAttacher.AddViewsForActionFilter(_filterThatFindsNone);

            _viewAttacher.AttemptToAttachViewToAction(_views, _action, _observer);
            _action.OfType <FakeViewToken>().ShouldHaveCount(0);
        }
Exemple #2
0
 public void by_ViewModel_and_Namespace_and_MethodName()
 {
     _attacher.AddViewsForActionFilter(new ActionWithSameNameAndFolderAsViewReturnsViewModelType());
 }