Question creation test.
{
global $ilDB;
include_once './Modules/TestQuestionPool/classes/class.assMultipleChoice.php';
$this->assertGreaterThan(0, $insert_id);
if ($insert_id > 0)
{
$mc->loadFromDb($insert_id);
$this->assertEquals($mc->getPoints(),2);
$this->assertEquals($mc->getTitle(),"unit test multiple choice question");
$this->assertEquals($mc->getComment(),"unit test multiple choice question comment");
$this->assertEquals($mc->getAuthor(),"Helmut Schottmüller");
$this->assertEquals($mc->getQuestion(),"<p><strong>unit tests</strong> are...</p>");
$this->assertEquals(count($mc->getAnswers()), 4);
}
}