Exemple #1
0
        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);
        }
Exemple #2
0
        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");
        }