The following test will fail with stackoverflow. I assumed "DeepComparison" would work with recursion relationship but maybe I'm mistaken?
The question is do you expect to support recursive relationships?
[Fact]
public void Deep_Different2()
{
var a = new X { In = 1, Out = 2 };
var b = new X { In = 1, Out = 2 };
a.Px = b;
b.Px = a;
_comparer.Compare(a, b).Message
.Should().Be("object.Equals(3, 4)");
}
The following test will fail with stackoverflow. I assumed "DeepComparison" would work with recursion relationship but maybe I'm mistaken?
The question is do you expect to support recursive relationships?
[Fact]
public void Deep_Different2()
{
var a = new X { In = 1, Out = 2 };
var b = new X { In = 1, Out = 2 };
}