17 if (defined(
'ILIAS_PHPUNIT_CONTEXT'))
19 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
20 ilUnitUtil::performInitialisation();
24 chdir( dirname( __FILE__ ) );
32 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
37 $this->assertInstanceOf(
'ASS_AnswerTrueFalse', $instance);
43 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
48 $instance->setCorrectness($expected);
49 $actual = $instance->getCorrectness();
52 $this->assertEquals($expected, $actual);
58 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
63 $instance->setCorrectness($expected);
66 $this->assertEquals($expected, $instance->isTrue());
67 $this->assertEquals($expected, $instance->isCorrect());
73 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
78 $instance->setCorrectness(
true);
81 $this->assertEquals($expected, $instance->isFalse());
82 $this->assertEquals($expected, $instance->isIncorrect());
90 $this->markTestIncomplete(
'Bug detected, fix not applied yet due to poor coverage.');
93 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
98 $instance->setFalse();
99 $actual = $instance->getCorrectness();
102 $this->assertEquals($expected, $actual);
108 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
113 $instance->setTrue();
114 $actual = $instance->isTrue();
117 $this->assertEquals($expected, $actual);
123 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
128 $instance->setFalse();
129 $actual = $instance->isFalse();
132 $this->assertEquals($expected, $actual);