public void AddBooleanProperty_Column()
        {
            String title = ResourceProvider.GetPropertyTitle <AllTypesView, Boolean>(model => model.BooleanField);
            Expression <Func <AllTypesView, Boolean> > expression = (model) => model.BooleanField;

            IGridColumn <AllTypesView> actual = columns.AddBooleanProperty(expression);

            Assert.Equal("text-left", actual.CssClasses);
            Assert.Equal(expression, actual.Expression);
            Assert.Equal(title, actual.Title);
            Assert.Single(columns);
        }
Esempio n. 2
0
        public void AddBooleanProperty_AddsGridColumn()
        {
            Expression <Func <AllTypesView, Boolean> > expression = (model) => model.BooleanField;

            columns.AddBooleanProperty(expression);

            columns.Received().Add(expression);
        }