public int delSexTest([PexAssumeUnderTest] BusinessPlayer target, string data) { int result = target.delSex(data); return(result); // TODO: add assertions to method BusinessPlayerTest.delSexTest(BusinessPlayer, String) }
private void simpleButton6_Click(object sender, EventArgs e) { if (gender.Text.Equals("")) { MessageBox.Show("Vui lòng chọn giới tính cần xoá!"); return; } if (MessageBox.Show("Bạn muốn xoá?", "Bạn chắc chứ?", MessageBoxButtons.YesNo) == DialogResult.No) { return; } if (business.delSex(gender.Text) > 0) { MessageBox.Show("Xoá thành công!"); gender.Text = ""; loadDataGender(); } else { MessageBox.Show("Không tồn tại!"); } }