You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i use the method to test the equality of properties between two objects of the same class. Under version 6.12.2, it works flawlessly, but in version 6.12.3, the following exception occurs:
CS0176 Member 'object.Equals(object?, object?)' cannot be accessed with an instance reference; qualify it with a type name instead.
Reproduction Steps
_address.Should().BeEquivalentTo(compareAddress,
o =>o.Excluding(x =>x.City).Excluding(x =>x.CityReference).Excluding(x =>x.ID));
Expected behavior
Should return true or false.
Actual behavior
Exception CS0176 Member 'object.Equals(object?, object?)' cannot be accessed with an instance reference; qualify it with a type name instead.