Skip to content

Commit

Permalink
Ensure all GetHashCode functions are implemented (#2804) (v3)
Browse files Browse the repository at this point in the history
  • Loading branch information
bradwilson committed Oct 26, 2023
1 parent cf53a9f commit 1bad24a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/xunit.v3.assert/Asserts
6 changes: 2 additions & 4 deletions src/xunit.v3.common/Reflection/ReflectionMethodInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,7 @@ bool IEqualityComparer.Equals(object? x, object? y)
return typeX == typeY;
}

int IEqualityComparer.GetHashCode(object obj)
{
throw new NotImplementedException();
}
int IEqualityComparer.GetHashCode(object obj) =>
Guard.ArgumentNotNull(obj).GetHashCode();
}
}

0 comments on commit 1bad24a

Please sign in to comment.