summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousasilva@gmail.com>2017-06-29 18:42:39 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2017-07-13 18:34:56 -0300
commitfc1be934627ee4ff6b67a020c69f18d063a0a6d8 (patch)
treeed124e646753f84d163b9249bab71d91f9c7e789
parentaf0d66a2d888309c5e9efa5372e4f736d9dcd9c1 (diff)
eina_mono: dispose objects inside the test cases for eina.Iterator
-rw-r--r--src/tests/efl_mono/Eina.cs84
1 files changed, 84 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Eina.cs b/src/tests/efl_mono/Eina.cs
index 2039475a4d..dba58d64b0 100644
--- a/src/tests/efl_mono/Eina.cs
+++ b/src/tests/efl_mono/Eina.cs
@@ -3306,6 +3306,9 @@ class TestEinaIterator
3306 ++idx; 3306 ++idx;
3307 } 3307 }
3308 Test.AssertEquals(idx, 0); 3308 Test.AssertEquals(idx, 0);
3309
3310 itr.Dispose();
3311 arr.Dispose();
3309 } 3312 }
3310 3313
3311 public static void eina_array_int_filled_iterator() 3314 public static void eina_array_int_filled_iterator()
@@ -3320,6 +3323,9 @@ class TestEinaIterator
3320 ++idx; 3323 ++idx;
3321 } 3324 }
3322 Test.AssertEquals(idx, base_seq_int.Length); 3325 Test.AssertEquals(idx, base_seq_int.Length);
3326
3327 itr.Dispose();
3328 arr.Dispose();
3323 } 3329 }
3324 3330
3325 public static void eina_array_str_empty_iterator() 3331 public static void eina_array_str_empty_iterator()
@@ -3332,6 +3338,9 @@ class TestEinaIterator
3332 ++idx; 3338 ++idx;
3333 } 3339 }
3334 Test.AssertEquals(idx, 0); 3340 Test.AssertEquals(idx, 0);
3341
3342 itr.Dispose();
3343 arr.Dispose();
3335 } 3344 }
3336 3345
3337 public static void eina_array_str_filled_iterator() 3346 public static void eina_array_str_filled_iterator()
@@ -3346,6 +3355,9 @@ class TestEinaIterator
3346 ++idx; 3355 ++idx;
3347 } 3356 }
3348 Test.AssertEquals(idx, base_seq_str.Length); 3357 Test.AssertEquals(idx, base_seq_str.Length);
3358
3359 itr.Dispose();
3360 arr.Dispose();
3349 } 3361 }
3350 3362
3351 public static void eina_array_obj_empty_iterator() 3363 public static void eina_array_obj_empty_iterator()
@@ -3358,6 +3370,9 @@ class TestEinaIterator
3358 ++idx; 3370 ++idx;
3359 } 3371 }
3360 Test.AssertEquals(idx, 0); 3372 Test.AssertEquals(idx, 0);
3373
3374 itr.Dispose();
3375 arr.Dispose();
3361 } 3376 }
3362 3377
3363 public static void eina_array_obj_filled_iterator() 3378 public static void eina_array_obj_filled_iterator()
@@ -3374,6 +3389,9 @@ class TestEinaIterator
3374 ++idx; 3389 ++idx;
3375 } 3390 }
3376 Test.AssertEquals(idx, base_objs.Length); 3391 Test.AssertEquals(idx, base_objs.Length);
3392
3393 itr.Dispose();
3394 arr.Dispose();
3377 } 3395 }
3378 3396
3379 // Inarray 3397 // Inarray
@@ -3388,6 +3406,9 @@ class TestEinaIterator
3388 ++idx; 3406 ++idx;
3389 } 3407 }
3390 Test.AssertEquals(idx, 0); 3408 Test.AssertEquals(idx, 0);
3409
3410 itr.Dispose();
3411 arr.Dispose();
3391 } 3412 }
3392 3413
3393 public static void eina_inarray_int_filled_iterator() 3414 public static void eina_inarray_int_filled_iterator()
@@ -3402,6 +3423,9 @@ class TestEinaIterator
3402 ++idx; 3423 ++idx;
3403 } 3424 }
3404 Test.AssertEquals(idx, base_seq_int.Length); 3425 Test.AssertEquals(idx, base_seq_int.Length);
3426
3427 itr.Dispose();
3428 arr.Dispose();
3405 } 3429 }
3406 3430
3407 // List // 3431 // List //
@@ -3416,6 +3440,9 @@ class TestEinaIterator
3416 ++idx; 3440 ++idx;
3417 } 3441 }
3418 Test.AssertEquals(idx, 0); 3442 Test.AssertEquals(idx, 0);
3443
3444 itr.Dispose();
3445 lst.Dispose();
3419 } 3446 }
3420 3447
3421 public static void eina_list_int_filled_iterator() 3448 public static void eina_list_int_filled_iterator()
@@ -3430,6 +3457,9 @@ class TestEinaIterator
3430 ++idx; 3457 ++idx;
3431 } 3458 }
3432 Test.AssertEquals(idx, base_seq_int.Length); 3459 Test.AssertEquals(idx, base_seq_int.Length);
3460
3461 itr.Dispose();
3462 lst.Dispose();
3433 } 3463 }
3434 3464
3435 public static void eina_list_str_empty_iterator() 3465 public static void eina_list_str_empty_iterator()
@@ -3442,6 +3472,9 @@ class TestEinaIterator
3442 ++idx; 3472 ++idx;
3443 } 3473 }
3444 Test.AssertEquals(idx, 0); 3474 Test.AssertEquals(idx, 0);
3475
3476 itr.Dispose();
3477 lst.Dispose();
3445 } 3478 }
3446 3479
3447 public static void eina_list_str_filled_iterator() 3480 public static void eina_list_str_filled_iterator()
@@ -3456,6 +3489,9 @@ class TestEinaIterator
3456 ++idx; 3489 ++idx;
3457 } 3490 }
3458 Test.AssertEquals(idx, base_seq_str.Length); 3491 Test.AssertEquals(idx, base_seq_str.Length);
3492
3493 itr.Dispose();
3494 lst.Dispose();
3459 } 3495 }
3460 3496
3461 public static void eina_list_obj_empty_iterator() 3497 public static void eina_list_obj_empty_iterator()
@@ -3468,6 +3504,9 @@ class TestEinaIterator
3468 ++idx; 3504 ++idx;
3469 } 3505 }
3470 Test.AssertEquals(idx, 0); 3506 Test.AssertEquals(idx, 0);
3507
3508 itr.Dispose();
3509 lst.Dispose();
3471 } 3510 }
3472 3511
3473 public static void eina_list_obj_filled_iterator() 3512 public static void eina_list_obj_filled_iterator()
@@ -3484,6 +3523,9 @@ class TestEinaIterator
3484 ++idx; 3523 ++idx;
3485 } 3524 }
3486 Test.AssertEquals(idx, base_objs.Length); 3525 Test.AssertEquals(idx, base_objs.Length);
3526
3527 itr.Dispose();
3528 lst.Dispose();
3487 } 3529 }
3488 3530
3489 // Inlist // 3531 // Inlist //
@@ -3498,6 +3540,9 @@ class TestEinaIterator
3498 ++idx; 3540 ++idx;
3499 } 3541 }
3500 Test.AssertEquals(idx, 0); 3542 Test.AssertEquals(idx, 0);
3543
3544 itr.Dispose();
3545 lst.Dispose();
3501 } 3546 }
3502 3547
3503 public static void eina_inlist_int_filled_iterator() 3548 public static void eina_inlist_int_filled_iterator()
@@ -3512,6 +3557,9 @@ class TestEinaIterator
3512 ++idx; 3557 ++idx;
3513 } 3558 }
3514 Test.AssertEquals(idx, base_seq_int.Length); 3559 Test.AssertEquals(idx, base_seq_int.Length);
3560
3561 itr.Dispose();
3562 lst.Dispose();
3515 } 3563 }
3516 3564
3517 // Hash // 3565 // Hash //
@@ -3526,6 +3574,9 @@ class TestEinaIterator
3526 entered = true; 3574 entered = true;
3527 } 3575 }
3528 Test.Assert(!entered); 3576 Test.Assert(!entered);
3577
3578 itr.Dispose();
3579 hsh.Dispose();
3529 } 3580 }
3530 3581
3531 public static void eina_hash_values_int_empty_iterator() 3582 public static void eina_hash_values_int_empty_iterator()
@@ -3538,6 +3589,9 @@ class TestEinaIterator
3538 entered = true; 3589 entered = true;
3539 } 3590 }
3540 Test.Assert(!entered); 3591 Test.Assert(!entered);
3592
3593 itr.Dispose();
3594 hsh.Dispose();
3541 } 3595 }
3542 3596
3543 public static void eina_hash_keys_int_filled_iterator() 3597 public static void eina_hash_keys_int_filled_iterator()
@@ -3562,6 +3616,9 @@ class TestEinaIterator
3562 } 3616 }
3563 Test.AssertEquals(dct.Count, 0); 3617 Test.AssertEquals(dct.Count, 0);
3564 Test.AssertEquals(idx, 3); 3618 Test.AssertEquals(idx, 3);
3619
3620 itr.Dispose();
3621 hsh.Dispose();
3565 } 3622 }
3566 3623
3567 public static void eina_hash_values_int_filled_iterator() 3624 public static void eina_hash_values_int_filled_iterator()
@@ -3586,6 +3643,9 @@ class TestEinaIterator
3586 } 3643 }
3587 Test.AssertEquals(dct.Count, 0); 3644 Test.AssertEquals(dct.Count, 0);
3588 Test.AssertEquals(idx, 3); 3645 Test.AssertEquals(idx, 3);
3646
3647 itr.Dispose();
3648 hsh.Dispose();
3589 } 3649 }
3590 3650
3591 public static void eina_hash_keys_str_empty_iterator() 3651 public static void eina_hash_keys_str_empty_iterator()
@@ -3598,6 +3658,9 @@ class TestEinaIterator
3598 entered = true; 3658 entered = true;
3599 } 3659 }
3600 Test.Assert(!entered); 3660 Test.Assert(!entered);
3661
3662 itr.Dispose();
3663 hsh.Dispose();
3601 } 3664 }
3602 3665
3603 public static void eina_hash_values_str_empty_iterator() 3666 public static void eina_hash_values_str_empty_iterator()
@@ -3610,6 +3673,9 @@ class TestEinaIterator
3610 entered = true; 3673 entered = true;
3611 } 3674 }
3612 Test.Assert(!entered); 3675 Test.Assert(!entered);
3676
3677 itr.Dispose();
3678 hsh.Dispose();
3613 } 3679 }
3614 3680
3615 public static void eina_hash_keys_str_filled_iterator() 3681 public static void eina_hash_keys_str_filled_iterator()
@@ -3634,6 +3700,9 @@ class TestEinaIterator
3634 } 3700 }
3635 Test.AssertEquals(dct.Count, 0); 3701 Test.AssertEquals(dct.Count, 0);
3636 Test.AssertEquals(idx, 3); 3702 Test.AssertEquals(idx, 3);
3703
3704 itr.Dispose();
3705 hsh.Dispose();
3637 } 3706 }
3638 3707
3639 public static void eina_hash_values_str_filled_iterator() 3708 public static void eina_hash_values_str_filled_iterator()
@@ -3658,6 +3727,9 @@ class TestEinaIterator
3658 } 3727 }
3659 Test.AssertEquals(dct.Count, 0); 3728 Test.AssertEquals(dct.Count, 0);
3660 Test.AssertEquals(idx, 3); 3729 Test.AssertEquals(idx, 3);
3730
3731 itr.Dispose();
3732 hsh.Dispose();
3661 } 3733 }
3662 3734
3663 public static void eina_hash_keys_obj_empty_iterator() 3735 public static void eina_hash_keys_obj_empty_iterator()
@@ -3670,6 +3742,9 @@ class TestEinaIterator
3670 entered = true; 3742 entered = true;
3671 } 3743 }
3672 Test.Assert(!entered); 3744 Test.Assert(!entered);
3745
3746 itr.Dispose();
3747 hsh.Dispose();
3673 } 3748 }
3674 3749
3675 public static void eina_hash_values_obj_empty_iterator() 3750 public static void eina_hash_values_obj_empty_iterator()
@@ -3682,6 +3757,9 @@ class TestEinaIterator
3682 entered = true; 3757 entered = true;
3683 } 3758 }
3684 Test.Assert(!entered); 3759 Test.Assert(!entered);
3760
3761 itr.Dispose();
3762 hsh.Dispose();
3685 } 3763 }
3686 3764
3687 public static void eina_hash_keys_obj_filled_iterator() 3765 public static void eina_hash_keys_obj_filled_iterator()
@@ -3714,6 +3792,9 @@ class TestEinaIterator
3714 } 3792 }
3715 Test.AssertEquals(dct.Count, 0); 3793 Test.AssertEquals(dct.Count, 0);
3716 Test.AssertEquals(idx, 3); 3794 Test.AssertEquals(idx, 3);
3795
3796 itr.Dispose();
3797 hsh.Dispose();
3717 } 3798 }
3718 3799
3719 public static void eina_hash_values_obj_filled_iterator() 3800 public static void eina_hash_values_obj_filled_iterator()
@@ -3746,6 +3827,9 @@ class TestEinaIterator
3746 } 3827 }
3747 Test.AssertEquals(dct.Count, 0); 3828 Test.AssertEquals(dct.Count, 0);
3748 Test.AssertEquals(idx, 3); 3829 Test.AssertEquals(idx, 3);
3830
3831 itr.Dispose();
3832 hsh.Dispose();
3749 } 3833 }
3750 3834
3751// // // 3835// // //