public void Mark_CorectOutput(int corectAnswer, int totalPertanyaan, double expected) { // Arrange var _ujianService = new UjianService(null, null, null); // Action double actual = _ujianService.Mark(corectAnswer, totalPertanyaan); // Assert Assert.Equal(expected, actual); }
public void IsExistInRangkumanAkademik_NotExistShouldReturnFalse(int akunPendaftaranId) { // Arrange var _ujianService = new UjianService(_connectionHelper, null, null); // Action bool isExist = _ujianService.IsExistInRangkumanAkademik(akunPendaftaranId); // Assert Assert.False(isExist); output.WriteLine($"id {akunPendaftaranId} tidak ada pada tabel RangkumanAkademik"); }