Show / Hide Table of Contents

Class HashTableSearchTests

Tests methods in HashTableSearch class.

Inheritance
System.Object
HashTableSearchTests
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: AlgorithmsAndDataStructuresTests.Algorithms.Search
Assembly: AlgorithmsAndDataStructuresTests.dll
Syntax
[TestClass]
public class HashTableSearchTests

Methods

| Improve this Doc View Source

ConvertList2HashTable_CheckingTheCorrectnesOfHashTable()

Tests the correctness of the method that generates a hash table over a list.

Declaration
[TestMethod]
public void ConvertList2HashTable_CheckingTheCorrectnesOfHashTable()
| Improve this Doc View Source

Search_DistinctElements_ExpectsToSuccessfullyGetTheIndexOfTheirPosition()

Tests the correctness of search algorithm.

Declaration
[TestMethod]
public void Search_DistinctElements_ExpectsToSuccessfullyGetTheIndexOfTheirPosition()
| Improve this Doc View Source

Search_DuplicateElements_ExpectsToGetTheIndexOfTheFirstOccurrenceNoMatterHowManyTimesSearchIsPerformed()

Tests the correctness of HashTable search algorithm on an array with duplicate elements. To visualize step by step how HashTable Search finds a duplicate element (int value of 90) in AlgorithmsAndDataStructuresTests.Algorithms.Search.HashTableSearchTests._list see: .

Declaration
[TestMethod]
public void Search_DuplicateElements_ExpectsToGetTheIndexOfTheFirstOccurrenceNoMatterHowManyTimesSearchIsPerformed()
| Improve this Doc View Source

Search_NonExistingElements_ExpectsToGetMinusOne()

Tests the correctness of HashTable search algorithm when the key does not exist in the array. To visualize step by step how HashTable Search terminates without finding a missing element (int value of 15) in AlgorithmsAndDataStructuresTests.Algorithms.Search.HashTableSearchTests._list see: .

Declaration
[TestMethod]
public void Search_NonExistingElements_ExpectsToGetMinusOne()
  • Improve this Doc
  • View Source
Back to top Generated by DocFX