@@ -3331,34 +3331,44 @@ public static IEnumerable<object[]> Sort_Array_TestData()
3331
3331
3332
3332
public static IEnumerable < object [ ] > Sort_SZArray_TestData ( )
3333
3333
{
3334
+ // Int
3334
3335
yield return new object [ ] { new int [ 0 ] , 0 , 0 , new IntegerComparer ( ) , new int [ 0 ] } ;
3335
3336
yield return new object [ ] { new int [ ] { 5 } , 0 , 1 , new IntegerComparer ( ) , new int [ ] { 5 } } ;
3336
3337
yield return new object [ ] { new int [ ] { 5 , 2 } , 0 , 2 , new IntegerComparer ( ) , new int [ ] { 2 , 5 } } ;
3337
3338
yield return new object [ ] { new int [ ] { 5 , 2 , 9 , 8 , 4 , 3 , 2 , 4 , 6 } , 0 , 9 , new IntegerComparer ( ) , new int [ ] { 2 , 2 , 3 , 4 , 4 , 5 , 6 , 8 , 9 } } ;
3338
3339
yield return new object [ ] { new int [ ] { 5 , 2 , 9 , 8 , 4 , 3 , 2 , 4 , 6 } , 3 , 4 , new IntegerComparer ( ) , new int [ ] { 5 , 2 , 9 , 2 , 3 , 4 , 8 , 4 , 6 } } ;
3339
3340
yield return new object [ ] { new int [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } , 0 , 9 , new IntegerComparer ( ) , new int [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } } ;
3340
-
3341
3341
yield return new object [ ] { new int [ ] { 5 , 2 , 9 , 8 , 4 , 3 , 2 , 4 , 6 } , 0 , 9 , null , new int [ ] { 2 , 2 , 3 , 4 , 4 , 5 , 6 , 8 , 9 } } ;
3342
3342
yield return new object [ ] { new int [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } , 0 , 9 , null , new int [ ] { 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 } } ;
3343
-
3344
3343
yield return new object [ ] { new int [ ] { 5 , 2 , 9 , 8 , 4 , 3 , 2 , 4 , 6 } , 0 , 0 , null , new int [ ] { 5 , 2 , 9 , 8 , 4 , 3 , 2 , 4 , 6 } } ;
3345
3344
yield return new object [ ] { new int [ ] { 5 , 2 , 9 , 8 , 4 , 3 , 2 , 4 , 6 } , 9 , 0 , null , new int [ ] { 5 , 2 , 9 , 8 , 4 , 3 , 2 , 4 , 6 } } ;
3345
+ yield return new object [ ] { new int [ ] { 1 , 2 , 3 , 4 } , 0 , 4 , null , new int [ ] { 1 , 2 , 3 , 4 } } ;
3346
+ yield return new object [ ] { new int [ ] { 4 , 3 , 2 , 1 } , 0 , 4 , null , new int [ ] { 1 , 2 , 3 , 4 } } ;
3347
+ yield return new object [ ] { new int [ ] { 4 , 3 , 2 , 1 } , 1 , 2 , null , new int [ ] { 4 , 2 , 3 , 1 } } ;
3348
+ yield return new object [ ] { new int [ ] { 4 , 3 , 2 } , 0 , 3 , new IntegerComparer ( ) , new int [ ] { 2 , 3 , 4 } } ;
3349
+ yield return new object [ ] { new int [ ] { 4 , 3 , 2 } , 0 , 3 , null , new int [ ] { 2 , 3 , 4 } } ;
3346
3350
3351
+ // String
3347
3352
yield return new object [ ] { new string [ 0 ] , 0 , 0 , null , new string [ 0 ] } ;
3348
3353
yield return new object [ ] { new string [ 0 ] , 0 , 0 , new StringComparer ( ) , new string [ 0 ] } ;
3349
3354
yield return new object [ ] { new string [ ] { "5" } , 0 , 1 , null , new string [ ] { "5" } } ;
3350
3355
yield return new object [ ] { new string [ ] { "5" } , 0 , 1 , new StringComparer ( ) , new string [ ] { "5" } } ;
3351
3356
yield return new object [ ] { new string [ ] { "5" , "2" } , 0 , 2 , null , new string [ ] { "2" , "5" } } ;
3352
3357
yield return new object [ ] { new string [ ] { "5" , "2" } , 0 , 2 , new StringComparer ( ) , new string [ ] { "2" , "5" } } ;
3358
+ yield return new object [ ] { new string [ ] { "5" , "2" , "3" } , 0 , 3 , null , new string [ ] { "2" , "3" , "5" } } ;
3359
+ yield return new object [ ] { new string [ ] { "5" , "2" , "3" } , 0 , 3 , new StringComparer ( ) , new string [ ] { "2" , "3" , "5" } } ;
3360
+ yield return new object [ ] { new string [ ] { "5" , "2" , null } , 0 , 3 , null , new string [ ] { null , "2" , "5" } } ;
3361
+ yield return new object [ ] { new string [ ] { "5" , "2" , null } , 0 , 3 , new StringComparer ( ) , new string [ ] { null , "2" , "5" } } ;
3353
3362
yield return new object [ ] { new string [ ] { "5" , "2" , "9" , "8" , "4" , "3" , "2" , "4" , "6" } , 0 , 9 , new StringComparer ( ) , new string [ ] { "2" , "2" , "3" , "4" , "4" , "5" , "6" , "8" , "9" } } ;
3354
3363
yield return new object [ ] { new string [ ] { "5" , null , "2" , "9" , "8" , "4" , "3" , "2" , "4" , "6" } , 0 , 10 , new StringComparer ( ) , new string [ ] { null , "2" , "2" , "3" , "4" , "4" , "5" , "6" , "8" , "9" } } ;
3355
3364
yield return new object [ ] { new string [ ] { "5" , null , "2" , "9" , "8" , "4" , "3" , "2" , "4" , "6" } , 3 , 4 , new StringComparer ( ) , new string [ ] { "5" , null , "2" , "3" , "4" , "8" , "9" , "2" , "4" , "6" } } ;
3356
3365
yield return new object [ ] { new string [ ] { null , null , null , null , null , "foo" , null , null , null , null , null , "bar" , null , null , null , null , null } , 0 , 17 , null , new string [ ] { null , null , null , null , null , null , null , null , null , null , null , null , null , null , null , "bar" , "foo" } } ;
3357
- yield return new object [ ] { new int [ ] { 1 , 2 , 3 , 4 } , 0 , 4 , null , new int [ ] { 1 , 2 , 3 , 4 } } ;
3358
- yield return new object [ ] { new int [ ] { 4 , 3 , 2 , 1 } , 0 , 4 , null , new int [ ] { 1 , 2 , 3 , 4 } } ;
3359
- yield return new object [ ] { new int [ ] { 4 , 3 , 2 , 1 } , 1 , 2 , null , new int [ ] { 4 , 2 , 3 , 1 } } ;
3360
- yield return new object [ ] { new int [ ] { 4 , 3 , 2 } , 0 , 3 , new IntegerComparer ( ) , new int [ ] { 2 , 3 , 4 } } ;
3361
- yield return new object [ ] { new int [ ] { 4 , 3 , 2 } , 0 , 3 , null , new int [ ] { 2 , 3 , 4 } } ;
3366
+ yield return new object [ ] { new string [ ] { null , null , null , null , null , "foo" , null , null , "test" , null , null , "bar" , null , null , null , null , null } , 0 , 17 , null , new string [ ] { null , null , null , null , null , null , null , null , null , null , null , null , null , null , "bar" , "foo" , "test" } } ;
3367
+ yield return new object [ ] { new string [ ] { null , null , null , null , null , "foo" , null , null , "test" , null , null , "bar" , null , null , null , null , null } , 0 , 17 , new StringComparer ( ) , new string [ ] { null , null , null , null , null , null , null , null , null , null , null , null , null , null , "bar" , "foo" , "test" } } ;
3368
+ yield return new object [ ] { new string [ ] { null , "bns" , "ici" , "fvk" , "xki" , null , "eig" , "asb" , "tal" , "ixn" , null , "ema" , "tsw" , "vjg" , "wjz" , null , "she" } , 0 , 17 , null , new string [ ] { null , null , null , null , "asb" , "bns" , "eig" , "ema" , "fvk" , "ici" , "ixn" , "she" , "tal" , "tsw" , "vjg" , "wjz" , "xki" } } ;
3369
+ yield return new object [ ] { new string [ ] { null , "bns" , "ici" , "fvk" , "xki" , null , "eig" , "asb" , "tal" , "ixn" , null , "ema" , "tsw" , "vjg" , "wjz" , null , "she" } , 0 , 17 , new StringComparer ( ) , new string [ ] { null , null , null , null , "asb" , "bns" , "eig" , "ema" , "fvk" , "ici" , "ixn" , "she" , "tal" , "tsw" , "vjg" , "wjz" , "xki" } } ;
3370
+ yield return new object [ ] { new string [ ] { "mpb" , "jfr" , "pfp" , "jgi" , "opx" , "rzi" , "cfg" , "hpg" , "jta" , "yku" , "zpo" , "atd" , "hhv" , "vtx" , "apn" , "ini" , "jcc" } , 0 , 17 , null , new string [ ] { "apn" , "atd" , "cfg" , "hhv" , "hpg" , "ini" , "jcc" , "jfr" , "jgi" , "jta" , "mpb" , "opx" , "pfp" , "rzi" , "vtx" , "yku" , "zpo" } } ;
3371
+ yield return new object [ ] { new string [ ] { "mpb" , "jfr" , "pfp" , "jgi" , "opx" , "rzi" , "cfg" , "hpg" , "jta" , "yku" , "zpo" , "atd" , "hhv" , "vtx" , "apn" , "ini" , "jcc" } , 0 , 17 , new StringComparer ( ) , new string [ ] { "apn" , "atd" , "cfg" , "hhv" , "hpg" , "ini" , "jcc" , "jfr" , "jgi" , "jta" , "mpb" , "opx" , "pfp" , "rzi" , "vtx" , "yku" , "zpo" } } ;
3362
3372
3363
3373
// Byte
3364
3374
yield return new object [ ] { new byte [ ] { 3 , 5 , 6 , 6 } , 0 , 4 , null , new byte [ ] { 3 , 5 , 6 , 6 } } ;
0 commit comments