![]() | EqualsTester Class |
Namespace: Capgemini.CommonObjectUtils.Testing
The EqualsTester type exposes the following members.
Name | Description | |
---|---|---|
![]() | EqualsTester | Initializes a new instance of the EqualsTester class |
Name | Description | |
---|---|---|
![]() | AddEqualityGroup |
Adds an equality group to the tester.
|
![]() | Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | TestEquals |
Tests the correct equality of the added items.
|
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
This class allows you to add groups of objects that should be equal in a fluent style.
This is a partial port of the Guava EqualsTester class.
new EqualsTester() .AddEqualityGroup("hello", "h" + "ello") .AddEqualityGroup(3, 1 + 2) .TestEquals();