interface IPerson
{
string Name { get }
}
class Person : IPerson
{
string IPerson.Name => "Bob";
}
IPerson person = new Person();
person.Should().BeEquivalentTo(new { Name = "Bob" });
Expected: Should not throw
Actual: Throws with message "Expectation has property person.Name that the other object does not have."