public void ChangeTypeAfterSettingDefaultValue() { Assert.Throws<DataException>(() => { DataColumn col = new DataColumn("foo", typeof(SqlBoolean)); col.DefaultValue = true; col.DataType = typeof(int); }); }