diff --git a/test/MockHttp.Tests/Http/QueryStringTests.cs b/test/MockHttp.Tests/Http/QueryStringTests.cs index 1636bbab..27ddae53 100644 --- a/test/MockHttp.Tests/Http/QueryStringTests.cs +++ b/test/MockHttp.Tests/Http/QueryStringTests.cs @@ -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 act = () => new QueryString(new[] { new KeyValuePair>(key, new List()) }); + Func act = () => new QueryString(new[] { new KeyValuePair>(key!, new List()) }); // Assert act.Should()