Example #1
0
 public void Merge_Many_Many() {
     StringWriter writer = new StringWriter();
     ParallelMergeSort p = new ParallelMergeSort( writer );
     double[] actual = p.Merge( new double[] { 1d, 2d, 3d, 4d }, new double[] { 1d, 2d, 3d, 4d } );
     double[] expected = new double[] { 1d, 1d, 2d, 2d, 3d, 3d, 4d, 4d };
     CollectionAssert.AreEqual( expected, actual );
 }
Example #2
0
 public void Merge_Empty_One() {
     StringWriter writer = new StringWriter();
     ParallelMergeSort p = new ParallelMergeSort( writer );
     double[] actual = p.Merge( new double[] { }, new double[] { 1d } );
     double[] expected = new double[] { 1d };
     CollectionAssert.AreEqual( expected, actual );
 }