Add() public method

Adds a new column
public Add ( Column column ) : void
column Column The column.
return void
コード例 #1
0
 public void Remove_Column()
 {
     var test = new Columns();
     var column = new Column("testing", ColumnTypes.Integer, true, null);
     test.Add(column);
     test.Remove(column);
     Assert.False(test.Items.Any(item => item.Name == "testing"));
 }
コード例 #2
0
 public void Script()
 {
     var test = new Columns();
     test.Add(new Column("testing", ColumnTypes.Integer, true, null));
     Assert.Contains("testing", test.Script());
 }
コード例 #3
0
 public void Add_Column()
 {
     var test = new Columns();
     test.Add(new Column("testing", ColumnTypes.Integer, true, null));
     Assert.True(test.Items.Any(item => item.Name == "testing"));
 }