Skip to content

Commit

Permalink
Update EquivalencyValidator.cs (#1992)
Browse files Browse the repository at this point in the history
Changes private function:
ShouldCompareMembersThisDeep to ShouldCompareNodesThisDeep.

@dennisdoomen
  • Loading branch information
Wolgo committed Sep 10, 2022
1 parent d25db58 commit 98caf57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Src/FluentAssertions/Equivalency/EquivalencyValidator.cs
Expand Up @@ -31,7 +31,7 @@ public void RecursivelyAssertEquality(Comparands comparands, IEquivalencyValidat
{
var scope = AssertionScope.Current;

if (ShouldCompareMembersThisDeep(context.CurrentNode, context.Options, scope))
if (ShouldCompareNodesThisDeep(context.CurrentNode, context.Options, scope))
{
UpdateScopeWithReportableContext(scope, comparands, context.CurrentNode);

Expand All @@ -42,7 +42,7 @@ public void RecursivelyAssertEquality(Comparands comparands, IEquivalencyValidat
}
}

private static bool ShouldCompareMembersThisDeep(INode currentNode, IEquivalencyAssertionOptions options,
private static bool ShouldCompareNodesThisDeep(INode currentNode, IEquivalencyAssertionOptions options,
AssertionScope assertionScope)
{
bool shouldRecurse = options.AllowInfiniteRecursion || currentNode.Depth < MaxDepth;
Expand Down

0 comments on commit 98caf57

Please sign in to comment.