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:"); }
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)); }
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:"); }