8

What the fuck is this shit? How can I trust anything these days?

Comments
  • 2
    Do you by any chance compare two different instances of that object/class?
  • 1
    Junit important part the J ;-)
  • 0
    Looks like the Equals implementation is finding a difference and the ToString isn't capable of accurately representing the objects.
  • 0
    @codeclod: That's exactly what it was. Never dealt with NUnit 2.6, and I guess that's a nice caveat that's not really discussed. The fix?

    public override bool Equals(object obj)
    {
    return obj.GetType() == GetType();
    }
Add Comment