summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2019-04-02 16:47:36 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-04-02 16:48:39 +0200
commit731db8b64403c06c36a27c6a73b13c4b04a9aacd (patch)
treee6b15b341753611f62f8fc46bf6689da5c18cbcf /src/tests
parentb41ed254a9f9dce60eb505f75da30a25fb6ea424 (diff)
csharp: Raise exception when Array is null.
Reviewers: felipealmeida, vitor.sousa, segfaultxavi Reviewed By: vitor.sousa Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8499
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/efl_mono/Eina.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Eina.cs b/src/tests/efl_mono/Eina.cs
index 8b7f1a9672..6a07e2f288 100644
--- a/src/tests/efl_mono/Eina.cs
+++ b/src/tests/efl_mono/Eina.cs
@@ -460,6 +460,12 @@ class TestEinaArray
460 Test.Assert(a.Handle != IntPtr.Zero); 460 Test.Assert(a.Handle != IntPtr.Zero);
461 } 461 }
462 462
463 public static void create_array_from_null()
464 {
465 Test.AssertRaises<ArgumentNullException>(() => new Eina.Array<int>(IntPtr.Zero, false));
466 Test.AssertRaises<ArgumentNullException>(() => new Eina.Array<int>(IntPtr.Zero, false, false));
467 }
468
463 public static void push_int() 469 public static void push_int()
464 { 470 {
465 var a = new Eina.Array<int>(); 471 var a = new Eina.Array<int>();