System.Data.Tests.ForeignKeyConstraintTest.ForeignKeyConstraintTest C# (CSharp) Method

ForeignKeyConstraintTest() public method

public ForeignKeyConstraintTest ( ) : Xunit
return Xunit
        public ForeignKeyConstraintTest()
        {
            _ds = new DataSet();

            //Setup DataTable
            DataTable table;
            table = new DataTable("TestTable");
            table.Columns.Add("Col1", typeof(int));
            table.Columns.Add("Col2", typeof(int));
            table.Columns.Add("Col3", typeof(int));

            _ds.Tables.Add(table);

            table = new DataTable("TestTable2");
            table.Columns.Add("Col1", typeof(int));
            table.Columns.Add("Col2", typeof(int));
            table.Columns.Add("Col3", typeof(int));

            _ds.Tables.Add(table);
        }