public void TestDetailAspBenar() { int id = 1; DETAIL_ASPEK result = aDAO.Detail(id); Assert.IsNotNull(result); }
[TestMethod]//oktes+db public void TesDeleteAlamatbenar() { DETAIL_ASPEK det = aDAO.Detail(17); Assert.IsNotNull(det); bool isPermanent = false; var a = aDAO.Delete(17, false); }
public void TestDetailAspekBenar() { int id = 0; DETAIL_ASPEK expectResult = null; DETAIL_ASPEK result = aDAO.Detail(id); Assert.AreEqual(expectResult, result); }
[TestMethod]//oktess+db public void TesEditDetailSalah() { DETAIL_ASPEK det = aDAO.Detail(0); Assert.IsNotNull(det); det.NILAI_K_A = 80; var a = aDAO.Edit(0, det); Assert.AreEqual(0, a); }
[TestMethod]//oktess+db public void TesEditDetailbenar() { DETAIL_ASPEK det = aDAO.Detail(2); Assert.IsNotNull(det); det.NILAI_K_A = 80; var a = aDAO.Edit(2, det); Assert.AreEqual(1, a); }
[TestMethod]//okpass+db public void TesTambahDetailAspekGagal() { DETAIL_ASPEK det = new DETAIL_ASPEK(); det.NILAI_K_A = 80; int a = aDAO.Add(det); Trace.WriteLine(det.ID_RAPOR); Assert.IsNotNull(a); }