Skip to content

Hum? Recursion not supported? #1

@BobbyCannon

Description

@BobbyCannon

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)");

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions