Add functional simulation question review

This commit is contained in:
hz
2026-07-14 17:49:23 -05:00
parent 3e39a4ffce
commit 705f079997
13 changed files with 551 additions and 32 deletions
+12
View File
@@ -32,6 +32,18 @@ public sealed class ChoicePoolTests
Assert.Equal("https://example.org/guideline", response.References[0].Url);
}
[Fact]
public void ExamReviewContainsOnlyChoicesPresentedDuringTheExam()
{
var question = BuildQuestion(9);
var presented = new[] { "F", "A", "C", "H", "D" };
var response = QuestionResponse.FromModelWithChoices(question, presented);
Assert.Equal(presented, response.Choices.Select(choice => choice.Id));
Assert.Equal(presented.Order(), response.ChoiceExplanations.Keys.Order());
Assert.DoesNotContain("B", response.Choices.Select(choice => choice.Id));
}
[Fact]
public void PublishedQuestionRequiresCompletePerChoiceTeachingContent()
{