コード例 #1
0
        public void read_only_sets_editable_off()
        {
            var builder = new StringBuilder();

            var column = new ColumnDefinition <ColumnDefTarget, string>(x => x.Name, theProjection);

            column.Editor(SlickGridEditor.Text);
            column.As <IGridColumn>().WriteColumn(builder, AccessRight.ReadOnly);

            builder.ToString().ShouldNotContain("editor:");
        }
コード例 #2
0
 public void do_nothing_if_not_using_any_kind_of_template()
 {
     theColumn.As <IGridColumn>().WriteTemplates(theTemplates);
     theTemplates.AssertWasNotCalled(x => x.AddElement(theColumn.Accessor, ElementConstants.Display));
     theTemplates.AssertWasNotCalled(x => x.AddElement(theColumn.Accessor, ElementConstants.Editor));
 }
コード例 #3
0
        public void read_only_sets_editable_off()
        {
            var builder = new StringBuilder();

            var column = new ColumnDefinition<ColumnDefTarget, string>(x => x.Name, theProjection);
            column.Editor(SlickGridEditor.Text);
            column.As<IGridColumn>().WriteColumn(builder, AccessRight.ReadOnly);

            builder.ToString().ShouldNotContain("editor:");
        }