Class BinaryHeapBaseTests
Tests methods in BinaryHeapBase<TKey, TValue> class via MockBinaryHeap<TKey, TValue>.
Inheritance
Inherited Members
Namespace: AlgorithmsAndDataStructuresTests.DataStructures.BinaryHeaps.API
Assembly: AlgorithmsAndDataStructuresTests.dll
Syntax
[TestClass]
public class BinaryHeapBaseTests
Methods
| Improve this Doc View SourceInitialize()
Initializes/Resets variables before executing each unit test in this class.
Declaration
[TestInitialize]
public void Initialize()
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()
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()
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()
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()
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()
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()
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()
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()