コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #4
0
 public void TestPartialSortAdd_NegativeNumberOfItems_Throws()
 {
     IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist();
     int numberOfItems = -1;
     list.PartialSort(numberOfItems);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #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);
 }
コード例 #10
0
 public void TestPartialSortInPlace_NegativeNumberOfItems_Throws()
 {
     IExpandableSublist<List<int>, int> list = new List<int>().ToSublist();
     int numberOfItems = -1;
     list.PartialSort(numberOfItems);
 }
コード例 #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);
 }
コード例 #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);
 }