Fixed punctuation

This commit is contained in:
Nils Andresen 2022-08-03 23:05:22 +02:00 committed by Patrik Svensson
parent 00a9ba325e
commit 2bd1383cbe
2 changed files with 3 additions and 3 deletions

View File

@ -59,7 +59,7 @@ internal sealed class MarkupTokenizer : IDisposable
if (encounteredClosing) if (encounteredClosing)
{ {
throw new InvalidOperationException( throw new InvalidOperationException(
$"Encountered unescaped ']' token at position {_reader.Position}."); $"Encountered unescaped ']' token at position {_reader.Position}");
} }
} }
@ -68,7 +68,7 @@ internal sealed class MarkupTokenizer : IDisposable
if (encounteredClosing) if (encounteredClosing)
{ {
throw new InvalidOperationException($"Encountered unescaped ']' token at position {_reader.Position}."); throw new InvalidOperationException($"Encountered unescaped ']' token at position {_reader.Position}");
} }
Current = new MarkupToken(MarkupTokenKind.Text, builder.ToString(), position); Current = new MarkupToken(MarkupTokenKind.Text, builder.ToString(), position);

View File

@ -107,7 +107,7 @@ public sealed class MarkupTests
// Then // Then
result.ShouldNotBeNull(); result.ShouldNotBeNull();
result.ShouldBeOfType<InvalidOperationException>(); result.ShouldBeOfType<InvalidOperationException>();
result.Message.ShouldBe("Encountered unescaped ']' token at position 16."); result.Message.ShouldBe("Encountered unescaped ']' token at position 16");
} }
[Fact] [Fact]