System.Data.Tests.DataTableCollectionTest.DataTableCollectionTest C# (CSharp) Méthode

DataTableCollectionTest() public méthode

public DataTableCollectionTest ( ) : Xunit
Résultat Xunit
        public DataTableCollectionTest()
        {
            // setting up dataset && tables
            _dataset = new DataSet[2];
            _tables = new DataTable[2];
            _dataset[0] = new DataSet();
            _dataset[1] = new DataSet();
            _tables[0] = new DataTable("Books");
            _tables[0].Columns.Add("id", typeof(int));
            _tables[0].Columns.Add("name", typeof(string));
            _tables[0].Columns.Add("author", typeof(string));

            _tables[1] = new DataTable("Category");
            _tables[1].Columns.Add("id", typeof(int));
            _tables[1].Columns.Add("desc", typeof(string));
        }
        // clean up code here