public void DataGridViewSelectedRowCollection_Insert_Invoke_ThrowsNotSupportedException(int index, DataGridViewRow dataGridRow) { using var control = new DataGridView(); DataGridViewSelectedRowCollection collection = control.SelectedRows; Assert.Throws <NotSupportedException>(() => collection.Insert(index, dataGridRow)); }