summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>2019-09-10 17:42:19 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-09-10 17:42:19 -0300
commit50a1572c093d8c2620cd4d1e9d48950fe7eeae95 (patch)
tree99ba8c4cf90f8e6f3e676555be548be807f622cd /src/tests
parent6ce53b9c0f85a8b94ad90bc9abebc0c21d08e84c (diff)
csharp: Adding ToString methods to Strbuf and custommarshaler.
Summary: WIN32 should use a allocator and deallocator different from EFL, sometimes, when freeing a pointer, it should use win32_free. To stardardize, A custommarshaler is used to fix this problem. Fixes T8201 Reviewers: lauromoura, felipealmeida Reviewed By: lauromoura Subscribers: cedric, brunobelo, felipealmeida, #reviewers, lauromoura, #committers Tags: #efl Maniphest Tasks: T8201 Differential Revision: https://phab.enlightenment.org/D9842
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/efl_mono/Strbuf.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/tests/efl_mono/Strbuf.cs b/src/tests/efl_mono/Strbuf.cs
index ef2cc56f16..78e9c5cbc3 100644
--- a/src/tests/efl_mono/Strbuf.cs
+++ b/src/tests/efl_mono/Strbuf.cs
@@ -16,6 +16,16 @@ class TestStrBuf
16 Test.AssertEquals("Here's Johnny!", buf.Steal()); 16 Test.AssertEquals("Here's Johnny!", buf.Steal());
17 } 17 }
18 18
19 public static void test_tostring()
20 {
21 Eina.Strbuf buf = new Eina.Strbuf();
22 buf.Append("Hello");
23 buf.Append(' ');
24 buf.Append("World!");
25
26 Test.AssertEquals("Hello World!", buf.ToString());
27 }
28
19 public static void test_eolian() 29 public static void test_eolian()
20 { 30 {
21 var obj = new Dummy.TestObject(); 31 var obj = new Dummy.TestObject();