diff options
author | Lauro Moura <lauromoura@expertisesolutions.com.br> | 2018-12-28 18:13:51 +0100 |
---|---|---|
committer | Xavi Artigas <xavierartigas@yahoo.es> | 2018-12-28 18:22:43 +0100 |
commit | c6509aee0fc4871524690411f3a9dde8ac447c0c (patch) | |
tree | 12fa1502adb3c76410c46792e50f0b433545ff87 /src/tests/efl_mono | |
parent | 9b1cc1d80ac380ff5c02d8626c3fc7bc682d0d27 (diff) | |
download | efl-c6509aee0fc4871524690411f3a9dde8ac447c0c.tar.gz |
efl-mono: Remove Flush from C# Value API.
Summary: Fixes T7387
Test Plan: run tests
Reviewers: segfaultxavi, felipealmeida
Reviewed By: segfaultxavi
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Maniphest Tasks: T7387
Differential Revision: https://phab.enlightenment.org/D7521
Diffstat (limited to 'src/tests/efl_mono')
-rw-r--r-- | src/tests/efl_mono/Value.cs | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/tests/efl_mono/Value.cs b/src/tests/efl_mono/Value.cs index 63b1d1f4be..6f2c5799b5 100644 --- a/src/tests/efl_mono/Value.cs +++ b/src/tests/efl_mono/Value.cs @@ -176,45 +176,10 @@ public static class TestEinaValue { { Eina.Value v = new Eina.Value(Eina.ValueType.Int32); v.Dispose(); - Test.AssertRaises<ObjectDisposedException>(v.Flush); Test.AssertRaises<ObjectDisposedException>(() => v.ToString()); Test.AssertRaises<ObjectDisposedException>(() => v.Set(24)); } - public static void TestValueFlush() - { - using (Eina.Value v = new Eina.Value(Eina.ValueType.Int32)) { - Test.Assert(v.Set(44)); - Test.Assert(!v.Flushed); - v.Flush(); - Test.Assert(v.Flushed); - - int x; - Test.AssertRaises<Eina.ValueFlushedException>(() => v.Get(out x)); - x = 42; - Test.AssertRaises<Eina.ValueFlushedException>(() => v.Set(x)); - - v.Setup(Eina.ValueType.String); - Test.AssertNotRaises<Eina.ValueFlushedException>(() => v.Set("Hello, EFL")); - - string y = String.Empty; - Test.AssertNotRaises<Eina.ValueFlushedException>(() => v.Get(out y)); - v.Flush(); - Test.AssertRaises<Eina.ValueFlushedException>(() => v.Get(out y)); - - v.Setup(Eina.ValueType.Array, Eina.ValueType.UInt32); - - Test.AssertNotRaises<Eina.ValueFlushedException>(() => - v.Append(42)); - v.Flush(); - Test.AssertRaises<Eina.ValueFlushedException>(() => - v.Append(42)); - - Test.AssertRaises<Eina.ValueFlushedException>(() => v.GetValueSubType()); - - } - } - private delegate bool BoolRet(); public static void TestValueOptionalInt() { |