summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono
diff options
context:
space:
mode:
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>2019-10-25 13:49:24 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-10-25 14:23:14 -0300
commitfee91831cb18d210406a946f3066e4e8da1f27cb (patch)
tree284a310f2d6d568222f796ec32bd80549100ba9b /src/tests/efl_mono
parent5844ab43203f83b79fd33ec3ce96f9cdcd9160f0 (diff)
csharp: Using Array.Empty Eina.
Summary: ref T8421 Reviewers: lauromoura, felipealmeida, segfaultxavi, YOhoho Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Maniphest Tasks: T8421 Differential Revision: https://phab.enlightenment.org/D10500
Diffstat (limited to 'src/tests/efl_mono')
-rw-r--r--src/tests/efl_mono/Eina.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tests/efl_mono/Eina.cs b/src/tests/efl_mono/Eina.cs
index d009dc8..c9194c7 100644
--- a/src/tests/efl_mono/Eina.cs
+++ b/src/tests/efl_mono/Eina.cs
@@ -37,7 +37,7 @@ class TestEinaBinbuf
37 { 37 {
38 var binbuf = new Eina.Binbuf(); 38 var binbuf = new Eina.Binbuf();
39 Test.Assert(binbuf.Handle != IntPtr.Zero); 39 Test.Assert(binbuf.Handle != IntPtr.Zero);
40 Test.Assert(binbuf.GetBytes().SequenceEqual(new byte[0])); 40 Test.Assert(binbuf.GetBytes().SequenceEqual(Array.Empty<byte>()));
41 } 41 }
42 42
43 public static void eina_binbuf_bytes() 43 public static void eina_binbuf_bytes()
@@ -89,7 +89,7 @@ class TestEinaBinbuf
89 Test.Assert(cmp.SequenceEqual(test_string)); 89 Test.Assert(cmp.SequenceEqual(test_string));
90 binbuf.Reset(); 90 binbuf.Reset();
91 Test.Assert(binbuf.Handle != IntPtr.Zero); 91 Test.Assert(binbuf.Handle != IntPtr.Zero);
92 Test.Assert(binbuf.GetBytes().SequenceEqual(new byte[0])); 92 Test.Assert(binbuf.GetBytes().SequenceEqual(Array.Empty<byte>()));
93 } 93 }
94 94
95 public static void append_bytes() 95 public static void append_bytes()
@@ -114,7 +114,7 @@ class TestEinaBinbuf
114 public static void append_binbuf() 114 public static void append_binbuf()
115 { 115 {
116 var binbuf = new Eina.Binbuf(); 116 var binbuf = new Eina.Binbuf();
117 Test.Assert(binbuf.GetBytes().SequenceEqual(new byte[0])); 117 Test.Assert(binbuf.GetBytes().SequenceEqual(Array.Empty<byte>()));
118 var binbuf2 = new Eina.Binbuf(test_string); 118 var binbuf2 = new Eina.Binbuf(test_string);
119 binbuf.Append(binbuf2); 119 binbuf.Append(binbuf2);
120 byte[] cmp = binbuf.GetBytes(); 120 byte[] cmp = binbuf.GetBytes();
@@ -158,7 +158,7 @@ class TestEinaBinbuf
158 Test.Assert(binbuf.GetBytes().SequenceEqual(test_string)); 158 Test.Assert(binbuf.GetBytes().SequenceEqual(test_string));
159 binbuf.FreeString(); 159 binbuf.FreeString();
160 Test.Assert(binbuf.Handle != IntPtr.Zero); 160 Test.Assert(binbuf.Handle != IntPtr.Zero);
161 Test.Assert(binbuf.GetBytes().SequenceEqual(new byte[0])); 161 Test.Assert(binbuf.GetBytes().SequenceEqual(Array.Empty<byte>()));
162 } 162 }
163 163
164 public static void binbuf_length() 164 public static void binbuf_length()