[Mono-devel-list] More tests and fixes for them

Ben Maurer bmaurer at ximian.com
Mon Aug 1 10:47:23 EDT 2005

On Mon, 2005-08-01 at 02:43 -0700, Andrew Skiba wrote:
> Please review the attached tests and fixes for them.
> I know the fixes look weird, but that's what dot net appear to do in
> their sys.drawing. PointF.ToString returns string with space, while
> Point.ToString returns without space. And the hash code for PointF seem
> to ignore the y value.

GetHashCode does not need to be the same for different impls of the
framework. For example, char has a different gethashcode for microsoft
and mono.

The only thing that we should test in GetHashCode is that x == y implies
hash(x) == hash (y).

-- Ben

More information about the Mono-devel-list mailing list