Ejemplo n.º 1
0
        public void AddActionLink_DoesNotRenderValueAsOnGridColumn()
        {
            IEnumerable <LinkAction> notSupportedActions = Enum
                                                           .GetValues(typeof(LinkAction))
                                                           .Cast <LinkAction>()
                                                           .Where(action =>
                                                                  action != LinkAction.Edit &&
                                                                  action != LinkAction.Details &&
                                                                  action != LinkAction.Delete);

            foreach (LinkAction action in notSupportedActions)
            {
                columns.AddActionLink(action);
            }

            column.DidNotReceive().RenderValueAs(Arg.Any <Func <AllTypesView, String> >());
        }