Skip to content

Commit

Permalink
fix(xUnit1012): Null should not be used for value type parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
skwasjer committed Feb 3, 2024
1 parent 84feaab commit 9f436a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/MockHttp.Tests/Http/QueryStringTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ public void Given_null_queryString_when_creating_should_throw()
[Theory]
[InlineData("")]
[InlineData(null)]
public void Given_queryString_with_null_or_empty_key_when_creating_should_throw(string key)
public void Given_queryString_with_null_or_empty_key_when_creating_should_throw(string? key)
{
// Act
Func<QueryString> act = () => new QueryString(new[] { new KeyValuePair<string, IEnumerable<string>>(key, new List<string>()) });
Func<QueryString> act = () => new QueryString(new[] { new KeyValuePair<string, IEnumerable<string>>(key!, new List<string>()) });

// Assert
act.Should()
Expand Down

0 comments on commit 9f436a4

Please sign in to comment.