The unit test passing appears to contradict the inspection claim.
There are a lot of false reports of bugs with this inspection.
public void Foo2()
{
bool objA = true;
bool objB = true;
var result1 = Equals(objA, objB);
Assert.Equal(true, result1);
}
Using:
It's a ReSharper bug: https://youtrack.jetbrains.com/issue/RSRP-471261
It was fixed in ReSharper 2018.2.2.