Added research on the web to the BeyondFacts Lab (#1186)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-10 18:17:44 +01:00
1 parent e5c0931a60
commit 9a676101f7
66 files changed
+3609 -70

No files matched your search

@@ -26,7 +26,7 @@ public sealed class BflWorkStateRequestTests
}
[Test]
public void TheRequestOffersSuggestionsOnlyForEmptyTextFields()
public void TheRequestOffersSuggestionsOnlyForEmptyFields()
{
var form = new BflStepFormData();
form.Set(BflFieldCatalog.FORMAT, "Podium");
@@ -41,6 +41,21 @@ public sealed class BflWorkStateRequestTests
}
}
[Test]
public void TheRequestNamesTheOptionsOfAnEmptyChoice()
{
var difficulty = BflFieldCatalog.FIELDS.Single(field => field.Id == BflFieldCatalog.DIFFICULTY);
var request = BflPromptComposer.ComposeWorkStateRequest("{{FIELDS}}", BflStep.TEST_SITUATION, new BflStepFormData());
using (Assert.EnterMultipleScope())
{
Assert.That(request, Does.Contain($"[{BflMarkdownSections.FIELD_PREFIX}{BflFieldCatalog.DIFFICULTY}]"));
foreach (var option in difficulty.Options)
Assert.That(request, Does.Contain($"„{option.Label}“"), option.Id);
}
}
[Test]
public void ARequestWithoutEmptyFieldsAsksForNoSuggestions()
{