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

AddException2() private méthode

private AddException2 ( ) : void
Résultat void
        public void AddException2()
        {
            Assert.Throws<ArgumentException>(() =>
           {
               /* table already exist in the collection */
               DataTableCollection tbcol = _dataset[0].Tables;
               tbcol.Add(_tables[0]);
               tbcol.Add(_tables[0]);
           });
        }