forked from enlightenment/efl
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
This commit is contained in:
parent
5844ab4320
commit
fee91831cb
|
@ -37,7 +37,7 @@ class TestEinaBinbuf
|
||||||
{
|
{
|
||||||
var binbuf = new Eina.Binbuf();
|
var binbuf = new Eina.Binbuf();
|
||||||
Test.Assert(binbuf.Handle != IntPtr.Zero);
|
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()
|
public static void eina_binbuf_bytes()
|
||||||
|
@ -89,7 +89,7 @@ class TestEinaBinbuf
|
||||||
Test.Assert(cmp.SequenceEqual(test_string));
|
Test.Assert(cmp.SequenceEqual(test_string));
|
||||||
binbuf.Reset();
|
binbuf.Reset();
|
||||||
Test.Assert(binbuf.Handle != IntPtr.Zero);
|
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()
|
public static void append_bytes()
|
||||||
|
@ -114,7 +114,7 @@ class TestEinaBinbuf
|
||||||
public static void append_binbuf()
|
public static void append_binbuf()
|
||||||
{
|
{
|
||||||
var binbuf = new Eina.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);
|
var binbuf2 = new Eina.Binbuf(test_string);
|
||||||
binbuf.Append(binbuf2);
|
binbuf.Append(binbuf2);
|
||||||
byte[] cmp = binbuf.GetBytes();
|
byte[] cmp = binbuf.GetBytes();
|
||||||
|
@ -158,7 +158,7 @@ class TestEinaBinbuf
|
||||||
Test.Assert(binbuf.GetBytes().SequenceEqual(test_string));
|
Test.Assert(binbuf.GetBytes().SequenceEqual(test_string));
|
||||||
binbuf.FreeString();
|
binbuf.FreeString();
|
||||||
Test.Assert(binbuf.Handle != IntPtr.Zero);
|
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()
|
public static void binbuf_length()
|
||||||
|
|
Loading…
Reference in New Issue