Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 public void TestPartialSortAdd_NegativeNumberOfItems_Throws()
 {
     IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist();
     int numberOfItems = -1;
     list.PartialSort(numberOfItems);
 }
Exemplo n.º 5
0
 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);
 }
Exemplo n.º 6
0
 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);
 }
Exemplo n.º 7
0
 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);
 }
Exemplo n.º 8
0
 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);
 }
Exemplo n.º 9
0
 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);
 }
Exemplo n.º 10
0
 public void TestPartialSortInPlace_NegativeNumberOfItems_Throws()
 {
     IExpandableSublist<List<int>, int> list = new List<int>().ToSublist();
     int numberOfItems = -1;
     list.PartialSort(numberOfItems);
 }
Exemplo n.º 11
0
 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);
 }
Exemplo n.º 12
0
 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);
 }