예제 #1
0
        public void denHan()
        {
            FrmRut1Phan frm = new FrmRut1Phan();

            Assert.AreEqual(true, frm.denHan("10"));

            Assert.AreEqual(false, frm.denHan("10"));
        }
예제 #2
0
        public void kiemTraKyHan()
        {
            FrmRut1Phan frm = new FrmRut1Phan();

            Assert.AreEqual(12, frm.kiemTraKyHan("10"));

            Assert.AreEqual(3, frm.kiemTraKyHan("10"));
        }
예제 #3
0
        public void Rut()
        {
            FrmRut1Phan frm = new FrmRut1Phan();

            Assert.AreEqual(true, frm.Rut(0, "10"));

            Assert.AreEqual(false, frm.Rut(10000, "10"));
        }
예제 #4
0
        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"));
        }
예제 #5
0
        public void kyHan()
        {
            FrmRut1Phan frm = new FrmRut1Phan();

            Assert.AreEqual("12 tháng", frm.getKyHan("10"));

            Assert.AreEqual("10 tháng", frm.getKyHan("10"));
        }
예제 #6
0
        public void getMonth()
        {
            FrmRut1Phan frm = new FrmRut1Phan();

            Assert.AreEqual(9, frm.gMonth("10"));

            Assert.AreEqual(12, frm.gMonth("10"));
        }
예제 #7
0
        public void GetDays()
        {
            FrmRut1Phan frm = new FrmRut1Phan();

            Assert.AreEqual(283, frm.getDays("10"));

            Assert.AreEqual(285, frm.getDays("10"));
        }
예제 #8
0
        public void CompareMoney()
        {
            FrmRut1Phan frm = new FrmRut1Phan();

            Assert.AreEqual(true, frm.compareMoney(10000, "2016"));

            Assert.AreEqual(false, frm.compareMoney(35000001, "2016"));
        }
예제 #9
0
        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();
        }