Click or drag to resize
EqualsTesterTestEquals Method
Tests the correct equality of the added items.

Namespace: Capgemini.CommonObjectUtils.Testing
Assembly: Capgemini.CommonObjectUtils (in Capgemini.CommonObjectUtils.dll) Version: 1.3.0.0
Syntax
public void TestEquals()
Exceptions
ExceptionCondition
EqualsTestException One of the tests failed.
Remarks
The method makes the following checks.
  • All items in the tester equal themselves.
  • None of the items in the tester equal null.
  • All items in each equality group equal each other.
  • None of the items equal an item in any other equality group.
  • All items in each equality group have the same hash code.
  • All items return the same hash code if called more than once.
See Also