public void Add_String2() { DataTable dt = new DataTable(); dt.Columns.Add("col1"); Assert.Throws<DuplicateNameException>(() => { dt.Columns.Add("col1"); }); }