mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-25 23:28:33 -06:00
update markdown printer to replace the weird non-breaking space character with the normal and cool space character
This commit is contained in:
@@ -2,6 +2,7 @@ using LocalModels;
|
||||
|
||||
public class RubricMarkdownTests
|
||||
{
|
||||
|
||||
[Test]
|
||||
public void TestCanParseOneItem()
|
||||
{
|
||||
@@ -15,6 +16,7 @@ public class RubricMarkdownTests
|
||||
rubric.First().Label.Should().Be("this is the task");
|
||||
rubric.First().Points.Should().Be(2);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestCanParseMultipleItems()
|
||||
{
|
||||
@@ -29,6 +31,7 @@ public class RubricMarkdownTests
|
||||
rubric.ElementAt(1).Label.Should().Be("this is the other task");
|
||||
rubric.ElementAt(1).Points.Should().Be(3);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestCanParseSinglePoint()
|
||||
{
|
||||
@@ -41,6 +44,7 @@ public class RubricMarkdownTests
|
||||
rubric.First().Label.Should().Be("this is the task");
|
||||
rubric.First().Points.Should().Be(1);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestCanParseSingleExtraCredit_LowerCase()
|
||||
{
|
||||
|
||||
@@ -33,10 +33,12 @@ public static class LocalAssignmentMarkdownCreator
|
||||
|
||||
private static string settingsToMarkdown(this LocalAssignment assignment)
|
||||
{
|
||||
var printableDueDate = assignment.DueAt.ToString().Replace('\u202F', ' ');
|
||||
var printableLockAt = assignment.LockAt?.ToString().Replace('\u202F', ' ') ?? "";
|
||||
var builder = new StringBuilder();
|
||||
builder.Append($"Name: {assignment.Name}" + "\n");
|
||||
builder.Append($"LockAt: {assignment.LockAt}" + "\n");
|
||||
builder.Append($"DueAt: {assignment.DueAt}" + "\n");
|
||||
builder.Append($"LockAt: {printableLockAt}" + "\n");
|
||||
builder.Append($"DueAt: {printableDueDate}" + "\n");
|
||||
builder.Append($"AssignmentGroupName: {assignment.LocalAssignmentGroupName}" + "\n");
|
||||
builder.Append($"SubmissionTypes:" + "\n");
|
||||
foreach (var submissionType in assignment.SubmissionTypes)
|
||||
|
||||
Reference in New Issue
Block a user