summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>2019-10-31 07:45:01 -0300
committerMike Blumenkrantz <zmike@samsung.com>2019-10-31 09:59:01 -0400
commita2b63846ee5c80014f5bbbe9d4ec51c240c5ac42 (patch)
tree83f78fc9023d4edc4e40ddefa7d43f44886aba02
parent33dd0b3454549c03b622f520ce4f4e17eb8eadbd (diff)
csharp: space after keywords.
Reviewers: felipealmeida, lauromoura, YOhoho Reviewed By: lauromoura Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10576
-rw-r--r--src/bindings/mono/efl_mono/UserModel.cs6
-rw-r--r--src/bindings/mono/eina_mono/eina_common.cs2
-rw-r--r--src/tests/efl_mono/Eina.cs8
-rw-r--r--src/tests/efl_mono/Eldbus.cs2
-rw-r--r--src/tests/efl_mono/Eo.cs2
-rw-r--r--src/tests/efl_mono/Main.cs4
-rw-r--r--src/tests/efl_mono/Value.cs64
7 files changed, 44 insertions, 44 deletions
diff --git a/src/bindings/mono/efl_mono/UserModel.cs b/src/bindings/mono/efl_mono/UserModel.cs
index a235a3a87f..5094c5fd2a 100644
--- a/src/bindings/mono/efl_mono/UserModel.cs
+++ b/src/bindings/mono/efl_mono/UserModel.cs
@@ -27,7 +27,7 @@ internal class ModelHelper
27 static internal void SetProperties<T>(T o, Efl.IModel child) 27 static internal void SetProperties<T>(T o, Efl.IModel child)
28 { 28 {
29 var properties = typeof(T).GetProperties(); 29 var properties = typeof(T).GetProperties();
30 foreach(var prop in properties) 30 foreach (var prop in properties)
31 { 31 {
32 child.SetProperty(prop.Name, ValueFromProperty(o, prop)); 32 child.SetProperty(prop.Name, ValueFromProperty(o, prop));
33 } 33 }
@@ -37,7 +37,7 @@ internal class ModelHelper
37 static internal void GetProperties<T>(T o, Efl.IModel child) 37 static internal void GetProperties<T>(T o, Efl.IModel child)
38 { 38 {
39 var properties = typeof(T).GetProperties(); 39 var properties = typeof(T).GetProperties();
40 foreach(var prop in properties) 40 foreach (var prop in properties)
41 { 41 {
42 using (var v = child.GetProperty(prop.Name)) 42 using (var v = child.GetProperty(prop.Name))
43 { 43 {
@@ -79,7 +79,7 @@ public class UserModel<T> : Efl.MonoModelInternal
79 public UserModel (Efl.Object parent = null) : base(Efl.MonoModelInternal.efl_mono_model_internal_class_get(), parent) 79 public UserModel (Efl.Object parent = null) : base(Efl.MonoModelInternal.efl_mono_model_internal_class_get(), parent)
80 { 80 {
81 var properties = typeof(T).GetProperties(); 81 var properties = typeof(T).GetProperties();
82 foreach(var prop in properties) 82 foreach (var prop in properties)
83 { 83 {
84 AddProperty(prop.Name, Eina.ValueTypeBridge.GetManaged(prop.PropertyType)); 84 AddProperty(prop.Name, Eina.ValueTypeBridge.GetManaged(prop.PropertyType));
85 } 85 }
diff --git a/src/bindings/mono/eina_mono/eina_common.cs b/src/bindings/mono/eina_mono/eina_common.cs
index 44d6c6cf4a..9465891998 100644
--- a/src/bindings/mono/eina_mono/eina_common.cs
+++ b/src/bindings/mono/eina_mono/eina_common.cs
@@ -205,7 +205,7 @@ public static class StringConversion
205 Marshal.WriteByte(native + strbuf.Length, 0); // write the terminating null 205 Marshal.WriteByte(native + strbuf.Length, 0); // write the terminating null
206 return native; 206 return native;
207 } 207 }
208 catch(Exception) 208 catch (Exception)
209 { 209 {
210 MemoryNative.Free(native); 210 MemoryNative.Free(native);
211 throw; 211 throw;
diff --git a/src/tests/efl_mono/Eina.cs b/src/tests/efl_mono/Eina.cs
index c9194c7662..4dad199d9a 100644
--- a/src/tests/efl_mono/Eina.cs
+++ b/src/tests/efl_mono/Eina.cs
@@ -4343,7 +4343,7 @@ class TestEinaAccessor
4343 4343
4344 var zipped = accessor.Zip(lst, (first, second) => new Tuple<int, int>(first, second)); 4344 var zipped = accessor.Zip(lst, (first, second) => new Tuple<int, int>(first, second));
4345 4345
4346 foreach(Tuple<int, int> pair in zipped) 4346 foreach (Tuple<int, int> pair in zipped)
4347 { 4347 {
4348 Test.AssertEquals(pair.Item1, pair.Item2); 4348 Test.AssertEquals(pair.Item1, pair.Item2);
4349 } 4349 }
@@ -4358,7 +4358,7 @@ class TestEinaAccessor
4358 4358
4359 var zipped = accessor.Zip(arr, (first, second) => new Tuple<string, string>(first, second)); 4359 var zipped = accessor.Zip(arr, (first, second) => new Tuple<string, string>(first, second));
4360 4360
4361 foreach(Tuple<string, string> pair in zipped) 4361 foreach (Tuple<string, string> pair in zipped)
4362 { 4362 {
4363 Test.AssertEquals(pair.Item1, pair.Item2); 4363 Test.AssertEquals(pair.Item1, pair.Item2);
4364 } 4364 }
@@ -4376,7 +4376,7 @@ class TestEinaAccessor
4376 4376
4377 var zipped = accessor.Zip(lst, (first, second) => new Tuple<int, int>(first, second)); 4377 var zipped = accessor.Zip(lst, (first, second) => new Tuple<int, int>(first, second));
4378 4378
4379 foreach(Tuple<int, int> pair in zipped) 4379 foreach (Tuple<int, int> pair in zipped)
4380 { 4380 {
4381 Test.AssertEquals(pair.Item1, pair.Item2); 4381 Test.AssertEquals(pair.Item1, pair.Item2);
4382 } 4382 }
@@ -4391,7 +4391,7 @@ class TestEinaAccessor
4391 4391
4392 var zipped = accessor.Zip(arr, (first, second) => new Tuple<int, int>(first, second)); 4392 var zipped = accessor.Zip(arr, (first, second) => new Tuple<int, int>(first, second));
4393 4393
4394 foreach(Tuple<int, int> pair in zipped) 4394 foreach (Tuple<int, int> pair in zipped)
4395 { 4395 {
4396 Test.AssertEquals(pair.Item1, pair.Item2); 4396 Test.AssertEquals(pair.Item1, pair.Item2);
4397 } 4397 }
diff --git a/src/tests/efl_mono/Eldbus.cs b/src/tests/efl_mono/Eldbus.cs
index b24929098b..f8a7c2734d 100644
--- a/src/tests/efl_mono/Eldbus.cs
+++ b/src/tests/efl_mono/Eldbus.cs
@@ -261,7 +261,7 @@ class TestEldbusMessage
261 string bus_name; 261 string bus_name;
262 bool isHasData = false; 262 bool isHasData = false;
263 263
264 while(iterator.GetAndNext(out bus_name)) 264 while (iterator.GetAndNext(out bus_name))
265 { 265 {
266 if (String.IsNullOrEmpty(bus_name)) 266 if (String.IsNullOrEmpty(bus_name))
267 { 267 {
diff --git a/src/tests/efl_mono/Eo.cs b/src/tests/efl_mono/Eo.cs
index a60fc8a2b5..8a5f4646a9 100644
--- a/src/tests/efl_mono/Eo.cs
+++ b/src/tests/efl_mono/Eo.cs
@@ -262,7 +262,7 @@ class TestEoAccessors
262 262
263 var zipped = acc.Zip(lst, (first, second) => new Tuple<int, int>(first, second)); 263 var zipped = acc.Zip(lst, (first, second) => new Tuple<int, int>(first, second));
264 264
265 foreach(Tuple<int, int> pair in zipped) 265 foreach (Tuple<int, int> pair in zipped)
266 { 266 {
267 Test.AssertEquals(pair.Item1, pair.Item2); 267 Test.AssertEquals(pair.Item1, pair.Item2);
268 } 268 }
diff --git a/src/tests/efl_mono/Main.cs b/src/tests/efl_mono/Main.cs
index 02d1fbf3a9..059ad4cf0d 100644
--- a/src/tests/efl_mono/Main.cs
+++ b/src/tests/efl_mono/Main.cs
@@ -48,14 +48,14 @@ class TestMain
48 48
49 Console.WriteLine("[ START SUITE ] " + ckRunSuite); 49 Console.WriteLine("[ START SUITE ] " + ckRunSuite);
50 var cases= GetTestCases(ckRunCase); 50 var cases= GetTestCases(ckRunCase);
51 foreach(var testCase in cases) 51 foreach (var testCase in cases)
52 { 52 {
53 var localTestCases = testCase.GetMethods(BindingFlags.Static | BindingFlags.Public); 53 var localTestCases = testCase.GetMethods(BindingFlags.Static | BindingFlags.Public);
54 54
55 var setUp = Array.Find(localTestCases, m => String.Equals(m.Name, "SetUp", StringComparison.Ordinal)); 55 var setUp = Array.Find(localTestCases, m => String.Equals(m.Name, "SetUp", StringComparison.Ordinal));
56 var tearDown = Array.Find(localTestCases, m => String.Equals(m.Name, "TearDown", StringComparison.Ordinal)); 56 var tearDown = Array.Find(localTestCases, m => String.Equals(m.Name, "TearDown", StringComparison.Ordinal));
57 57
58 foreach(var localTestCase in localTestCases) 58 foreach (var localTestCase in localTestCases)
59 { 59 {
60 if (localTestCase == setUp || localTestCase == tearDown) 60 if (localTestCase == setUp || localTestCase == tearDown)
61 continue; 61 continue;
diff --git a/src/tests/efl_mono/Value.cs b/src/tests/efl_mono/Value.cs
index 969b336e5f..14a5ac0a12 100644
--- a/src/tests/efl_mono/Value.cs
+++ b/src/tests/efl_mono/Value.cs
@@ -493,8 +493,8 @@ public static class TestEinaValue {
493 493
494 public static void TestValueCompareArray() 494 public static void TestValueCompareArray()
495 { 495 {
496 using(Eina.Value a = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) 496 using (Eina.Value a = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32))
497 using(Eina.Value b = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) { 497 using (Eina.Value b = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) {
498 498
499 Test.AssertEquals(a, b); 499 Test.AssertEquals(a, b);
500 500
@@ -536,8 +536,8 @@ public static class TestEinaValue {
536 536
537 public static void TestValueCompareList() 537 public static void TestValueCompareList()
538 { 538 {
539 using(Eina.Value a = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) 539 using (Eina.Value a = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32))
540 using(Eina.Value b = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) { 540 using (Eina.Value b = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) {
541 541
542 Test.AssertEquals(a, b); 542 Test.AssertEquals(a, b);
543 543
@@ -584,7 +584,7 @@ public static class TestEinaValue {
584 584
585 public static void TestValueToString() 585 public static void TestValueToString()
586 { 586 {
587 using(Eina.Value a = new Eina.Value(Eina.ValueType.Int32)) { 587 using (Eina.Value a = new Eina.Value(Eina.ValueType.Int32)) {
588 int i = -12345; 588 int i = -12345;
589 string x = $"{i}"; 589 string x = $"{i}";
590 Test.Assert(a.Set(i)); 590 Test.Assert(a.Set(i));
@@ -606,8 +606,8 @@ public static class TestEinaValue {
606 606
607 public static void TestValueConvertInt() 607 public static void TestValueConvertInt()
608 { 608 {
609 using(Eina.Value from = new Eina.Value(Eina.ValueType.Int32)) 609 using (Eina.Value from = new Eina.Value(Eina.ValueType.Int32))
610 using(Eina.Value to = new Eina.Value(Eina.ValueType.UInt32)) { 610 using (Eina.Value to = new Eina.Value(Eina.ValueType.UInt32)) {
611 int source = 0x7FFFFFFF; 611 int source = 0x7FFFFFFF;
612 uint target_uint; 612 uint target_uint;
613 int target_int; 613 int target_int;
@@ -636,8 +636,8 @@ public static class TestEinaValue {
636 636
637 public static void TestValueConvertUInt() 637 public static void TestValueConvertUInt()
638 { 638 {
639 using(Eina.Value from = new Eina.Value(Eina.ValueType.UInt32)) 639 using (Eina.Value from = new Eina.Value(Eina.ValueType.UInt32))
640 using(Eina.Value to = new Eina.Value(Eina.ValueType.UInt32)) { 640 using (Eina.Value to = new Eina.Value(Eina.ValueType.UInt32)) {
641 uint source = 0xFFFFFFFF; 641 uint source = 0xFFFFFFFF;
642 uint target_uint; 642 uint target_uint;
643 string target_str; 643 string target_str;
@@ -664,13 +664,13 @@ public static class TestEinaValue {
664 public static void TestValueContainerConstructorWrongArgs() 664 public static void TestValueContainerConstructorWrongArgs()
665 { 665 {
666 Test.AssertRaises<ArgumentException>(() => { 666 Test.AssertRaises<ArgumentException>(() => {
667 using(Eina.Value array = new Eina.Value(Eina.ValueType.String, Eina.ValueType.String)) { } 667 using (Eina.Value array = new Eina.Value(Eina.ValueType.String, Eina.ValueType.String)) { }
668 }); 668 });
669 } 669 }
670 670
671 public static void TestValueContainerWithNonContainerAccess() 671 public static void TestValueContainerWithNonContainerAccess()
672 { 672 {
673 using(Eina.Value array = new Eina.Value(Eina.ValueType.Int32)) { 673 using (Eina.Value array = new Eina.Value(Eina.ValueType.Int32)) {
674 Test.AssertRaises<Eina.InvalidValueTypeException>(() => array[0] = 1); 674 Test.AssertRaises<Eina.InvalidValueTypeException>(() => array[0] = 1);
675 object val = null; 675 object val = null;
676 Test.AssertRaises<Eina.InvalidValueTypeException>(() => val = array[0]); 676 Test.AssertRaises<Eina.InvalidValueTypeException>(() => val = array[0]);
@@ -679,7 +679,7 @@ public static class TestEinaValue {
679 679
680 public static void TestValueArrayOfSByte() 680 public static void TestValueArrayOfSByte()
681 { 681 {
682 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.SByte)) { 682 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.SByte)) {
683 Test.AssertEquals(0, array.Count()); 683 Test.AssertEquals(0, array.Count());
684 Test.Assert(array.Append(0)); 684 Test.Assert(array.Append(0));
685 Test.AssertEquals(1, array.Count()); 685 Test.AssertEquals(1, array.Count());
@@ -711,7 +711,7 @@ public static class TestEinaValue {
711 711
712 public static void TestValueArrayOfByte() 712 public static void TestValueArrayOfByte()
713 { 713 {
714 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Byte)) { 714 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Byte)) {
715 Test.AssertEquals(0, array.Count()); 715 Test.AssertEquals(0, array.Count());
716 Test.Assert(array.Append(0)); 716 Test.Assert(array.Append(0));
717 Test.AssertEquals(1, array.Count()); 717 Test.AssertEquals(1, array.Count());
@@ -745,7 +745,7 @@ public static class TestEinaValue {
745 745
746 public static void TestValueArrayOfInts() 746 public static void TestValueArrayOfInts()
747 { 747 {
748 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) { 748 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) {
749 Test.AssertEquals(0, array.Count()); 749 Test.AssertEquals(0, array.Count());
750 Test.Assert(array.Append(0)); 750 Test.Assert(array.Append(0));
751 Test.AssertEquals(1, array.Count()); 751 Test.AssertEquals(1, array.Count());
@@ -777,7 +777,7 @@ public static class TestEinaValue {
777 777
778 public static void TestValueArrayOfInt64s() 778 public static void TestValueArrayOfInt64s()
779 { 779 {
780 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int64)) { 780 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int64)) {
781 Test.AssertEquals(0, array.Count()); 781 Test.AssertEquals(0, array.Count());
782 Test.Assert(array.Append(0)); 782 Test.Assert(array.Append(0));
783 Test.AssertEquals(1, array.Count()); 783 Test.AssertEquals(1, array.Count());
@@ -810,7 +810,7 @@ public static class TestEinaValue {
810 public static void TestValueArrayOfUInts() 810 public static void TestValueArrayOfUInts()
811 { 811 {
812 812
813 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.UInt32)) { 813 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.UInt32)) {
814 Test.Assert(array.Append(2)); 814 Test.Assert(array.Append(2));
815 Test.AssertEquals((uint)array[0], (uint)2); 815 Test.AssertEquals((uint)array[0], (uint)2);
816 Test.AssertRaises<OverflowException>(() => array[0] = -1); 816 Test.AssertRaises<OverflowException>(() => array[0] = -1);
@@ -820,7 +820,7 @@ public static class TestEinaValue {
820 public static void TestValueArrayOfStrings() 820 public static void TestValueArrayOfStrings()
821 { 821 {
822 822
823 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.String)) { 823 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.String)) {
824 824
825 Test.Assert(array.Append("hello")); 825 Test.Assert(array.Append("hello"));
826 Test.Assert(array.Append("world")); 826 Test.Assert(array.Append("world"));
@@ -839,7 +839,7 @@ public static class TestEinaValue {
839 public static void TestValueArrayOfObjects() 839 public static void TestValueArrayOfObjects()
840 { 840 {
841 841
842 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Object)) { 842 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Object)) {
843 843
844 var a = new Dummy.TestObject(); 844 var a = new Dummy.TestObject();
845 var b = new Dummy.TestObject(); 845 var b = new Dummy.TestObject();
@@ -861,7 +861,7 @@ public static class TestEinaValue {
861 861
862 862
863 public static void TestArrayOutOfBounds() { 863 public static void TestArrayOutOfBounds() {
864 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) { 864 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) {
865 object placeholder = null; 865 object placeholder = null;
866 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => array[0] = 1); 866 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => array[0] = 1);
867 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => placeholder = array[0]); 867 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => placeholder = array[0]);
@@ -877,16 +877,16 @@ public static class TestEinaValue {
877 } 877 }
878 878
879 public static void TestValueArraySubType() { 879 public static void TestValueArraySubType() {
880 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) 880 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32))
881 Test.AssertEquals(Eina.ValueType.Int32, array.GetValueSubType()); 881 Test.AssertEquals(Eina.ValueType.Int32, array.GetValueSubType());
882 882
883 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.UInt32)) 883 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.UInt32))
884 Test.AssertEquals(Eina.ValueType.UInt32, array.GetValueSubType()); 884 Test.AssertEquals(Eina.ValueType.UInt32, array.GetValueSubType());
885 } 885 }
886 886
887 public static void TestValueArrayConvert() { 887 public static void TestValueArrayConvert() {
888 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) 888 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32))
889 using(Eina.Value other = new Eina.Value(Eina.ValueType.Int32)) { 889 using (Eina.Value other = new Eina.Value(Eina.ValueType.Int32)) {
890 other.Set(100); 890 other.Set(100);
891 other.ConvertTo(array); 891 other.ConvertTo(array);
892 Test.AssertEquals(100, (int)array[0]); 892 Test.AssertEquals(100, (int)array[0]);
@@ -895,7 +895,7 @@ public static class TestEinaValue {
895 } 895 }
896 896
897 public static void TestValueList() { 897 public static void TestValueList() {
898 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) { 898 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) {
899 Test.AssertEquals(0, list.Count()); 899 Test.AssertEquals(0, list.Count());
900 Test.Assert(list.Append(0)); 900 Test.Assert(list.Append(0));
901 Test.AssertEquals(1, list.Count()); 901 Test.AssertEquals(1, list.Count());
@@ -924,13 +924,13 @@ public static class TestEinaValue {
924 Test.AssertEquals("[1984, -42, 5, 42]", list.ToString()); 924 Test.AssertEquals("[1984, -42, 5, 42]", list.ToString());
925 } 925 }
926 926
927 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.UInt32)) { 927 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.UInt32)) {
928 Test.Assert(list.Append(2)); 928 Test.Assert(list.Append(2));
929 Test.AssertEquals((uint)list[0], (uint)2); 929 Test.AssertEquals((uint)list[0], (uint)2);
930 Test.AssertRaises<OverflowException>(() => list[0] = -1); 930 Test.AssertRaises<OverflowException>(() => list[0] = -1);
931 } 931 }
932 932
933 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.String)) { 933 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.String)) {
934 934
935 Test.Assert(list.Append("hello")); 935 Test.Assert(list.Append("hello"));
936 Test.Assert(list.Append("world")); 936 Test.Assert(list.Append("world"));
@@ -947,7 +947,7 @@ public static class TestEinaValue {
947 } 947 }
948 948
949 public static void TestListOutOfBounds() { 949 public static void TestListOutOfBounds() {
950 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) { 950 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) {
951 object placeholder = null; 951 object placeholder = null;
952 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => list[0] = 1); 952 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => list[0] = 1);
953 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => placeholder = list[0]); 953 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => placeholder = list[0]);
@@ -963,16 +963,16 @@ public static class TestEinaValue {
963 } 963 }
964 964
965 public static void TestValueListSubType() { 965 public static void TestValueListSubType() {
966 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) 966 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32))
967 Test.AssertEquals(Eina.ValueType.Int32, list.GetValueSubType()); 967 Test.AssertEquals(Eina.ValueType.Int32, list.GetValueSubType());
968 968
969 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.UInt32)) 969 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.UInt32))
970 Test.AssertEquals(Eina.ValueType.UInt32, list.GetValueSubType()); 970 Test.AssertEquals(Eina.ValueType.UInt32, list.GetValueSubType());
971 } 971 }
972 972
973 public static void TestValueListConvert() { 973 public static void TestValueListConvert() {
974 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) 974 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32))
975 using(Eina.Value other = new Eina.Value(Eina.ValueType.Int32)) { 975 using (Eina.Value other = new Eina.Value(Eina.ValueType.Int32)) {
976 other.Set(100); 976 other.Set(100);
977 other.ConvertTo(list); 977 other.ConvertTo(list);
978 Test.AssertEquals(100, (int)list[0]); 978 Test.AssertEquals(100, (int)list[0]);
@@ -982,7 +982,7 @@ public static class TestEinaValue {
982 982
983 public static void TestStringThroughValue() { 983 public static void TestStringThroughValue() {
984 // Check if Value_Native->Value doesn't try to free the pointed string. 984 // Check if Value_Native->Value doesn't try to free the pointed string.
985 using(Eina.Value value_ptr = new Eina.Value(Eina.ValueType.String)) { 985 using (Eina.Value value_ptr = new Eina.Value(Eina.ValueType.String)) {
986 string payload = "Something"; 986 string payload = "Something";
987 value_ptr.Set(payload); 987 value_ptr.Set(payload);
988 Eina.ValueNative byvalue = value_ptr; 988 Eina.ValueNative byvalue = value_ptr;