public void TestPartialSortCopy_NullComparer_Throws() { IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist(); int numberOfItems = 0; IComparer<int> comparer = null; list.PartialSort(numberOfItems, comparer); }
public void TestPartialSortAdd_NullComparison_Throws() { IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist(); int numberOfItems = 0; Func<int, int, int> comparison = null; list.PartialSort(numberOfItems, comparison); }
public void TestPartialSortAdd_NullDestination_Throws() { IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist(); int numberOfItems = 0; IExpandableSublist<List<int>, int> destination = null; list.PartialSort(numberOfItems).AddTo(destination); }
public void TestPartialSortAdd_NegativeNumberOfItems_Throws() { IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist(); int numberOfItems = -1; list.PartialSort(numberOfItems); }
public void TestPartialSortAdd_WithComparison_NumberOfItemsTooBig_Throws() { IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist(); int numberOfItems = 1; Func<int, int, int> comparison = Comparer<int>.Default.Compare; list.PartialSort(numberOfItems, comparison); }
public void TestPartialSortAdd_WithComparison_NullDestination_Throws() { IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist(); int numberOfItems = 0; IExpandableSublist<List<int>, int> destination = null; Func<int, int, int> comparison = Comparer<int>.Default.Compare; list.PartialSort(numberOfItems, comparison).AddTo(destination); }
public void TestPartialSortAdd_WithComparer_NegativeNumberOfItems_Throws() { IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist(); int numberOfItems = -1; IComparer<int> comparer = Comparer<int>.Default; list.PartialSort(numberOfItems, comparer); }
public void TestPartialSortCopy_WithComparer_NullDestination_Throws() { IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist(); int numberOfItems = 0; IExpandableSublist<List<int>, int> destination = null; IComparer<int> comparer = Comparer<int>.Default; list.PartialSort(numberOfItems, comparer).CopyTo(destination); }
public void TestPartialSortInPlace_NullComparison_Throws() { IExpandableSublist<List<int>, int> list = new List<int>().ToSublist(); int numberOfItems = 0; Func<int, int, int> comparison = null; list.PartialSort(numberOfItems, comparison); }
public void TestPartialSortInPlace_NegativeNumberOfItems_Throws() { IExpandableSublist<List<int>, int> list = new List<int>().ToSublist(); int numberOfItems = -1; list.PartialSort(numberOfItems); }
public void TestPartialSortInPlace_WithComparison_NegativeNumberOfItems_Throws() { IExpandableSublist<List<int>, int> list = new List<int>().ToSublist(); int numberOfItems = -1; Func<int, int, int> comparison = Comparer<int>.Default.Compare; list.PartialSort(numberOfItems, comparison); }
public void TestPartialSortInPlace_WithComparer_NumberOfItemsTooBig_Throws() { IExpandableSublist<List<int>, int> list = new List<int>().ToSublist(); int numberOfItems = 1; IComparer<int> comparer = Comparer<int>.Default; list.PartialSort(numberOfItems, comparer); }