System.Data.Tests.DataTableTest.CloneExtendedProperties1 C# (CSharp) Method

CloneExtendedProperties1() private method

private CloneExtendedProperties1 ( ) : void
return void
        public void CloneExtendedProperties1()
        {
            DataTable table1 = new DataTable("Table1");

            Assert.Throws<EvaluateException>(() =>
            {
                DataColumn c1 = table1.Columns.Add("c1", typeof(string), "'hello ' + c2"); /* Should cause an exception */
            });
        }
DataTableTest