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 12, 2023
1 parent 0f25151 commit 27b9952
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 27b9952

Please sign in to comment.