Skip to content

Commit

Permalink
Removed unnecessary filtering from MustMatchByNameRule.cs.
Browse files Browse the repository at this point in the history
  • Loading branch information
logiclrd committed Mar 1, 2022
1 parent 307d80a commit 47b6647
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,8 @@ public IMember Match(IMember expectedMember, object subject, INode parent, IEqui

if (subjectMember is null)
{
bool ignoreMemberBecauseItIsNotBrowsable = config.ExcludeNonBrowsable && !expectedMember.IsBrowsable;

if (!ignoreMemberBecauseItIsNotBrowsable)
{
Execute.Assertion.FailWith(
$"Expectation has {expectedMember.Description} that the other object does not have.");
}
Execute.Assertion.FailWith(
$"Expectation has {expectedMember.Description} that the other object does not have.");
}

return subjectMember;
Expand Down

0 comments on commit 47b6647

Please sign in to comment.