Exemplo n.º 1
0
 public void TestStableSortCopy_WithComparison_NullBuffer_Throws()
 {
     IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist();
     IExpandableSublist<List<int>, int> buffer = null;
     Func<int, int, int> comparison = Comparer<int>.Default.Compare;
     list.StableSort(buffer, comparison);
 }
Exemplo n.º 2
0
 public void TestStableSortCopy_NullComparison_Throws()
 {
     IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist();
     Func<int, int, int> comparison = null;
     list.StableSort(comparison);
 }
Exemplo n.º 3
0
 public void TestStableSortCopy_WithBuffer_NullComparer_Throws()
 {
     IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist();
     IExpandableSublist<List<int>, int> buffer = new List<int>().ToSublist();
     IComparer<int> comparer = null;
     list.StableSort(buffer, comparer);
 }
Exemplo n.º 4
0
 public void TestStableSortCopy_DestinationNull_Throws()
 {
     IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist();
     IExpandableSublist<List<int>, int> destination = null;
     list.StableSort().CopyTo(destination);
 }
Exemplo n.º 5
0
 public void TestStableSortCopy_NullComparer_Throws()
 {
     var list = new List<int>().ToSublist();
     IComparer<int> comparer = null;
     list.StableSort(comparer);
 }
Exemplo n.º 6
0
 public void TestStableSortInPlace_WithComparer_NullBuffer_Throws()
 {
     IExpandableSublist<List<int>, int> list = new List<int>().ToSublist();
     IExpandableSublist<List<int>, int> buffer = null;
     IComparer<int> comparer = Comparer<int>.Default;
     list.StableSort(buffer, comparer);
 }
Exemplo n.º 7
0
 public void TestStableSortInPlace_WithBuffer_NullComparison_Throws()
 {
     var list = new List<int>().ToSublist();
     IExpandableSublist<List<int>, int> buffer = new List<int>().ToSublist();
     Func<int, int, int> comparison = null;
     list.StableSort(buffer, comparison);
 }
Exemplo n.º 8
0
 public void TestStableSortInPlace_NullComparison_Throws()
 {
     var list = new List<int>().ToSublist();
     Func<int, int, int> comparison = null;
     list.StableSort(comparison);
 }
Exemplo n.º 9
0
 public void TestStableSortInPlace_NullBuffer_Throws()
 {
     IExpandableSublist<List<int>, int> list = new List<int>().ToSublist();
     IExpandableSublist<List<int>, int> buffer = null;
     list.StableSort(buffer);
 }
Exemplo n.º 10
0
 public void TestStableSortAdd_NullComparer_Throws()
 {
     IReadOnlySublist<List<int>, int> list = new List<int>().ToSublist();
     IComparer<int> comparer = null;
     list.StableSort(comparer);
 }