public void WorkHoursAddProgrammerWorkHoursForDayTest() { DataManager target = new DataManager(); // TODO: Initialize to an appropriate value float expected = 0; // TODO: Initialize to an appropriate value float actual; DateTime day = DateTime.Parse("1.12.12"); actual = target.WorkHoursAddProgrammerWorkHoursForDay(1, 5, day); Assert.AreEqual(expected, actual); //Assert.Inconclusive("Verify the correctness of this test method."); }
private void taskDataGridView_CellEndEdit(object sender, DataGridViewCellEventArgs e) { try { var str = taskDataGridView[e.ColumnIndex, e.RowIndex].Value as string; ; //MessageBox.Show("str = " + str); DataManager dm = new DataManager(); DateTime date = Settings1.Default.startCurrentSprint; var ownerStr = Convert.ToInt32(taskDataGridView.Rows[Convert.ToInt32(e.RowIndex.ToString())].Cells[3].Value.ToString());//taskDataGridView[taskDataGridView.Columns[3].Index, e.RowIndex].Value; int owner = ((int)ownerStr); dm.WorkHoursAddProgrammerWorkHoursForDay(owner, int.Parse(str), date.AddDays(e.ColumnIndex - 6)); } catch { //MessageBox.Show("str = null"); } }