Add back null check.
MODIFY
WalletWasabi.Tests/UnitTests/Crypto/GroupElements/GeneralTests.cs
WalletWasabi.Tests/UnitTests/Crypto/GroupElements/GeneralTests.cs
@@ -123,12 +123,18 @@ namespace WalletWasabi.Tests.UnitTests.Crypto.GroupElements
public void NullEquality()
{
var one = new Scalar(1);
- var a = new GroupElement(EC.G * one);
+ var ge = new GroupElement(EC.G * one);
+
+ // Kinda clunky, but otherwise CodeFactor won't be happy.
+ GroupElement n = null;
+
+ Assert.False(ge == n);
+ Assert.True(ge != n);
- Assert.False(a == null);
- Assert.True(a != null);
+ Assert.False(n == ge);
+ Assert.True(n != ge);
- Assert.False(a.Equals(null));
+ Assert.False(ge.Equals(n));
}
[Fact]

Add back null check.