Esempio n. 1
0
 public void Test_SortWithDelegate_KeyMax()
 {
     double[][] a = new double[3][];
     a[0] = new double[2] {
         2, 2
     };
     a[1] = new double[2] {
         3, 3
     };
     a[2] = new double[3] {
         1, 1, 1
     };
     SortClass.SortWithDelegate(a, KeyMax);
     CollectionAssert.AreEqual(a[0], new double[3] {
         1, 1, 1
     });
     CollectionAssert.AreEqual(a[1], new double[2] {
         2, 2
     });
     CollectionAssert.AreEqual(a[2], new double[2] {
         3, 3
     });
 }