Skip to content

Commit

Permalink
Added test for parsing invalid headers
Browse files Browse the repository at this point in the history
  • Loading branch information
jstedfast committed Jun 22, 2024
1 parent d7a8a6f commit c6f9fd9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions UnitTests/HeaderTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,12 @@ public void TestParserCanonicalization ()
Assert.That (header.RawValue[header.RawValue.Length - 1], Is.EqualTo ((byte) '\n'), "RawValue should end with a new-line");
}

[Test]
public void TestParseInvalidHeader ()
{
Assert.That (Header.TryParse ("This is invalid", out _), Is.False, "TryParse");
}

[Test]
public void TestToHeaderId ()
{
Expand Down

0 comments on commit c6f9fd9

Please sign in to comment.