GuardTests: Fix warnings.
MODIFY
WalletWasabi.Tests/UnitTests/GuardTests.cs
WalletWasabi.Tests/UnitTests/GuardTests.cs
@@ -10,7 +10,7 @@ namespace WalletWasabi.Tests.UnitTests
public void True()
{
Guard.True("foo", true);
- Assert.Throws<ArgumentNullException>(() => Guard.True(null, true));
+ Assert.Throws<ArgumentNullException>(() => Guard.True(null!, true));
Assert.Throws<ArgumentException>(() => Guard.True("", true));
Assert.Throws<ArgumentException>(() => Guard.True(" ", true));
Assert.Throws<ArgumentOutOfRangeException>(() => Guard.True("foo", false));
@@ -21,7 +21,7 @@ namespace WalletWasabi.Tests.UnitTests
public void False()
{
Guard.False("foo", false);
- Assert.Throws<ArgumentNullException>(() => Guard.False(null, false));
+ Assert.Throws<ArgumentNullException>(() => Guard.False(null!, false));
Assert.Throws<ArgumentException>(() => Guard.False("", false));
Assert.Throws<ArgumentException>(() => Guard.False(" ", false));
Assert.Throws<ArgumentOutOfRangeException>(() => Guard.False("foo", true));

GuardTests: Fix warnings.