From 9f436a49b1c3f51ecd3031c91668dbc61fc0498d Mon Sep 17 00:00:00 2001 From: skwasjer <11424653+skwasjer@users.noreply.github.com> Date: Sat, 3 Feb 2024 04:17:25 +0100 Subject: [PATCH] fix(xUnit1012): Null should not be used for value type parameters --- test/MockHttp.Tests/Http/QueryStringTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()