lauromoura pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=fee91831cb18d210406a946f3066e4e8da1f27cb

commit fee91831cb18d210406a946f3066e4e8da1f27cb
Author: Bruno da Silva Belo <[email protected]>
Date:   Fri Oct 25 13:49:24 2019 -0300

    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
---
 src/tests/efl_mono/Eina.cs | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/tests/efl_mono/Eina.cs b/src/tests/efl_mono/Eina.cs
index d009dc8893..c9194c7662 100644
--- a/src/tests/efl_mono/Eina.cs
+++ b/src/tests/efl_mono/Eina.cs
@@ -37,7 +37,7 @@ class TestEinaBinbuf
     {
         var binbuf = new Eina.Binbuf();
         Test.Assert(binbuf.Handle != IntPtr.Zero);
-        Test.Assert(binbuf.GetBytes().SequenceEqual(new byte[0]));
+        Test.Assert(binbuf.GetBytes().SequenceEqual(Array.Empty<byte>()));
     }
 
     public static void eina_binbuf_bytes()
@@ -89,7 +89,7 @@ class TestEinaBinbuf
         Test.Assert(cmp.SequenceEqual(test_string));
         binbuf.Reset();
         Test.Assert(binbuf.Handle != IntPtr.Zero);
-        Test.Assert(binbuf.GetBytes().SequenceEqual(new byte[0]));
+        Test.Assert(binbuf.GetBytes().SequenceEqual(Array.Empty<byte>()));
     }
 
     public static void append_bytes()
@@ -114,7 +114,7 @@ class TestEinaBinbuf
     public static void append_binbuf()
     {
         var binbuf = new Eina.Binbuf();
-        Test.Assert(binbuf.GetBytes().SequenceEqual(new byte[0]));
+        Test.Assert(binbuf.GetBytes().SequenceEqual(Array.Empty<byte>()));
         var binbuf2 = new Eina.Binbuf(test_string);
         binbuf.Append(binbuf2);
         byte[] cmp = binbuf.GetBytes();
@@ -158,7 +158,7 @@ class TestEinaBinbuf
         Test.Assert(binbuf.GetBytes().SequenceEqual(test_string));
         binbuf.FreeString();
         Test.Assert(binbuf.Handle != IntPtr.Zero);
-        Test.Assert(binbuf.GetBytes().SequenceEqual(new byte[0]));
+        Test.Assert(binbuf.GetBytes().SequenceEqual(Array.Empty<byte>()));
     }
 
     public static void binbuf_length()

-- 


Reply via email to