This class tests and illustrates the use of the HashedList class. Tests are in three parts.

The first section tests the methods that are present in the Collection interface. All of the optional methods of that interface are supported. This involves tests of the HashedClass interface directly.

The second set of tests uses the Cursor returned by the GetCursor() method and tests the standard Cursor methods to display and remove rows from the HashedList.

The third set of tests tests the extended capabilities of the HashedListCursor to add rows to the table, and to work as a cursor to move in a non-linear fashion through the list.

There is as yet no testing that the HashedList fails appropriately and gracefully.


The following tables list the members exposed by HashedListTester.

Public Constructors

 NameDescription
Public methodHashedListTesterInitializes a new instance of the HashedListTester class.
Top

Public Methods

 NameDescription
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (inherited from Object)
Public methodGetHashCodeServes as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public methodGetTypeGets the Type of the current instance. (inherited from Object)
Public methodStaticshow 
Public methodTest 
Public methodTestCollection 
Public methodTestCursor 
Public methodTestHashedList 
Public methodTestIterator 
Public methodToStringReturns a String that represents the current Object. (inherited from Object)
Top

Protected Methods

 NameDescription
Family methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Family methodMemberwiseCloneCreates a shallow copy of the current Object. (inherited from Object)
Top

See Also