private void deleteQuestionButton_Click(object sender, EventArgs e) { if (questionListBox.SelectedItem != null) { bool ret = quizOP.deleteQuestion(qSaveList[questionListBox.SelectedIndex].id); if (ret) { MessageBox.Show("Soru Başarıyla Silindi"); qListe(); } else { MessageBox.Show("Silinirken hata oluştu"); } } else { MessageBox.Show("Silinecek soruyu seçiniz"); } }
public void deleteQuestion() { Classes.QuestionOperation quizOp = new Classes.QuestionOperation(); Assert.AreEqual(true, quizOp.deleteQuestion(154)); }