System.Data.Tests.DataTableCollectionTest.AddException2 C# (CSharp) Метод

AddException2() приватный Метод

private AddException2 ( ) : void
Результат 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]);
           });
        }