public void denHan() { FrmRut1Phan frm = new FrmRut1Phan(); Assert.AreEqual(true, frm.denHan("10")); Assert.AreEqual(false, frm.denHan("10")); }
public void kiemTraKyHan() { FrmRut1Phan frm = new FrmRut1Phan(); Assert.AreEqual(12, frm.kiemTraKyHan("10")); Assert.AreEqual(3, frm.kiemTraKyHan("10")); }
public void Rut() { FrmRut1Phan frm = new FrmRut1Phan(); Assert.AreEqual(true, frm.Rut(0, "10")); Assert.AreEqual(false, frm.Rut(10000, "10")); }
public void true0KyHan() { FrmRut1Phan frm = new FrmRut1Phan(); Assert.AreEqual("12 tháng", frm.true0KyHan("10")); Assert.AreEqual("Không kỳ hạn", frm.true0KyHan("10")); }
public void kyHan() { FrmRut1Phan frm = new FrmRut1Phan(); Assert.AreEqual("12 tháng", frm.getKyHan("10")); Assert.AreEqual("10 tháng", frm.getKyHan("10")); }
public void getMonth() { FrmRut1Phan frm = new FrmRut1Phan(); Assert.AreEqual(9, frm.gMonth("10")); Assert.AreEqual(12, frm.gMonth("10")); }
public void GetDays() { FrmRut1Phan frm = new FrmRut1Phan(); Assert.AreEqual(283, frm.getDays("10")); Assert.AreEqual(285, frm.getDays("10")); }
public void CompareMoney() { FrmRut1Phan frm = new FrmRut1Phan(); Assert.AreEqual(true, frm.compareMoney(10000, "2016")); Assert.AreEqual(false, frm.compareMoney(35000001, "2016")); }
private void btnRut1Phan_Click(object sender, EventArgs e) { var k = dataGridView1.SelectedRows[0].Cells[0].Value; FrmRut1Phan r = new FrmRut1Phan() { GKey = k.ToString() }; r.Show(); }