System.Data.Tests.DataSetTest.Load_TableConflictF C# (CSharp) Method

Load_TableConflictF() private method

private Load_TableConflictF ( ) : void
return void
        public void Load_TableConflictF()
        {
            Assert.Throws<ArgumentException>(() =>
           {
               _fillErrCounter = 0;
               _fillErr[0].init("Table1", 1, false,
                   "Input string was not in a correct format.Couldn't store <mono 1> in name1 Column.  Expected type is Double.");
               localSetup();
               DataSet dsLoad = new DataSet("LoadTableConflict");
               DataTable table1 = new DataTable();
               table1.Columns.Add("name1", typeof(double));
               dsLoad.Tables.Add(table1);
               DataTable table2 = new DataTable();
               dsLoad.Tables.Add(table2);
               DataTableReader dtr = _ds.CreateDataReader();
               dsLoad.Load(dtr, LoadOption.Upsert,
                        fillErrorHandler, table1, table2);
           });
        }