Is there a way to ignore internal properties of a class when doing ShouldBeEquivalentTo?
For example, in the class below I want to exclude the MetaData property from the object graph comparison.
public class SomeObject
{
Public string SomeString { get; set; }
internal MetaData MetaData { get; set; }
}
I would prefer to not use
someObject.ShouldBeEquivalentTo(someOtherObject, options =>
options.Excluding(info => info.SelectedMemberPath == "MetaData")
Because I might have more than 1 internal property and setting up this for all those properties would be tedious.