Show / Hide Table of Contents

Class BinaryHeapBaseTests

Tests methods in BinaryHeapBase<TKey, TValue> class via MockBinaryHeap<TKey, TValue>.

Inheritance
System.Object
BinaryHeapBaseTests
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.DataStructures.BinaryHeaps.API
Assembly: AlgorithmsAndDataStructuresTests.dll
Syntax
[TestClass]
public class BinaryHeapBaseTests

Methods

| Improve this Doc View Source

Initialize()

Initializes/Resets variables before executing each unit test in this class.

Declaration
[TestInitialize]
public void Initialize()
| Improve this Doc View Source

TryFindIndexOfMaxBiggerThanReference_IndexesInRange_ExpectsSuccessAndCorrectMaxIdex()

Tests the correctness of finding the maximum value among the given elements that is bigger than the given reference value.

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

TryFindIndexOfMaxBiggerThanReference_IndexesInRange_ExpectsSuccessAndCorrectMaxIndex()

Tests the correctness of finding the maximum value among the given elements that is bigger than the given reference value.

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

TryFindIndexOfMaxBiggerThanReference_OneIndexOutOfRange_ExpectsSuccessAndMaxIntegerAsMaxIndex()

Tests the correctness of finding the maximum value among the given elements that is bigger than the given reference value.

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

TryFindIndexOfMaxBiggerThanReference_ReferenceIsMaxInteger_ExpectsFailureAndMaxIntegerAsMaxIndex()

Tests the correctness of finding the maximum value among the given elements that is bigger than the given reference value.

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

TryFindIndexOfMinSmallerThanReference_IndexesInRange_ExpectsSuccessAndCorrectMinIndex()

Tests the correctness of finding the minimum value among the given elements that is smaller than the given reference value.

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

TryFindIndexOfMinSmallerThanReference_IndexesInRangeAndReferenceMinInteger_ExpectsFailureAndMinIntegerAsIndex()

Tests the correctness of finding the minimum value among the given elements that is smaller than the given reference value.

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

TryFindIndexOfMinSmallerThanReference_OutOfRangeIndexes_ExpectsFailureAndMinIntegerAsMinIndex()

Tests the correctness of finding the minimum value among the given elements that is smaller than the given reference value.

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

TryFindIndexOfMinSmallerThanReference_ReferenceIsSmallest_ExpectsFailureAndMinIntegerAsMinIndex()

Tests the correctness of finding the minimum value among the given elements that is smaller than the given reference value.

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