コード例 #1
0
        public void AsAttributes_OnEmptyColumn()
        {
            column.Name                 = "";
            column.CssClasses           = "";
            column.IsHidden             = false;
            column.Filter.Name          = "text";
            column.Sort.IsEnabled       = false;
            column.Filter.IsEnabled     = false;
            column.Filter.DefaultMethod = "equals";
            column.Filter.Type          = GridFilterType.Double;
            column.Sort.FirstOrder      = GridSortOrder.Desc;
            column.Filter.First         = Substitute.For <IGridFilter>();

            Assert.Empty(column.AsAttributes());
        }