switched to xunit

This commit is contained in:
2024-05-03 18:49:51 -06:00
parent aab38c3e9b
commit 26bf2bbbd1
34 changed files with 643 additions and 298 deletions

View File

@@ -2,7 +2,7 @@ using LocalModels;
public class TextAnswerTests
{
[Test]
[Fact]
public void CanParseEssay()
{
var rawMarkdownQuiz = @"
@@ -28,7 +28,7 @@ essay
firstQuestion.Text.Should().NotContain("essay");
}
[Test]
[Fact]
public void CanParseShortAnswer()
{
var rawMarkdownQuiz = @"
@@ -54,7 +54,7 @@ short answer
firstQuestion.Text.Should().NotContain("short answer");
}
[Test]
[Fact]
public void ShortAnswerToMarkdown_IsCorrect()
{
var rawMarkdownQuiz = @"
@@ -83,7 +83,7 @@ short_answer";
questionMarkdown.Should().Contain(expectedMarkdown);
}
[Test]
[Fact]
public void EssayQuestionToMarkdown_IsCorrect()
{
var rawMarkdownQuiz = @"