Skip to content

Commit

Permalink
Remove a redundant length check in GenericDictionaryEquivalencyStep
Browse files Browse the repository at this point in the history
  • Loading branch information
aldelaro5 committed Apr 21, 2023
1 parent c724653 commit 839fc3a
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,6 @@ private static bool AssertExpectationIsNotNull(object subject, object expectatio
// the AssertSameLength method.
where TExpectedKey : TSubjectKey
{
if (expectation.Count == subject.Count)
{
return true;
}

KeyDifference<TSubjectKey, TExpectedKey> keyDifference = CalculateKeyDifference(subject, expectation);

bool hasMissingKeys = keyDifference.MissingKeys.Count > 0;
Expand Down

0 comments on commit 839fc3a

Please sign in to comment.