summaryrefslogtreecommitdiff
path: root/src/tests/efl_mono
diff options
context:
space:
mode:
authorBruno da Silva Belo <brunodasilvabelo@gmail.com>2019-10-31 07:45:01 -0300
committerLauro Moura <lauromoura@expertisesolutions.com.br>2019-10-31 07:53:00 -0300
commit72a5367f8dd0ceeefea3729dafedb970e47d0613 (patch)
treea0e0331f9f299b83caf7d3321fd27bcc79c387e4 /src/tests/efl_mono
parent78bc0b77b7a77222cba49ebffe173faa86268df9 (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
Diffstat (limited to 'src/tests/efl_mono')
-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
5 files changed, 40 insertions, 40 deletions
diff --git a/src/tests/efl_mono/Eina.cs b/src/tests/efl_mono/Eina.cs
index c9194c7..4dad199 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 b249290..f8a7c27 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 a60fc8a..8a5f464 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 02d1fbf..059ad4c 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 6bf36d7..ec71e1e 100644
--- a/src/tests/efl_mono/Value.cs
+++ b/src/tests/efl_mono/Value.cs
@@ -502,8 +502,8 @@ public static class TestEinaValue {
502 502
503 public static void TestValueCompareArray() 503 public static void TestValueCompareArray()
504 { 504 {
505 using(Eina.Value a = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) 505 using (Eina.Value a = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32))
506 using(Eina.Value b = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) { 506 using (Eina.Value b = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) {
507 507
508 Test.AssertEquals(a, b); 508 Test.AssertEquals(a, b);
509 509
@@ -545,8 +545,8 @@ public static class TestEinaValue {
545 545
546 public static void TestValueCompareList() 546 public static void TestValueCompareList()
547 { 547 {
548 using(Eina.Value a = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) 548 using (Eina.Value a = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32))
549 using(Eina.Value b = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) { 549 using (Eina.Value b = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) {
550 550
551 Test.AssertEquals(a, b); 551 Test.AssertEquals(a, b);
552 552
@@ -593,7 +593,7 @@ public static class TestEinaValue {
593 593
594 public static void TestValueToString() 594 public static void TestValueToString()
595 { 595 {
596 using(Eina.Value a = new Eina.Value(Eina.ValueType.Int32)) { 596 using (Eina.Value a = new Eina.Value(Eina.ValueType.Int32)) {
597 int i = -12345; 597 int i = -12345;
598 string x = $"{i}"; 598 string x = $"{i}";
599 Test.Assert(a.Set(i)); 599 Test.Assert(a.Set(i));
@@ -615,8 +615,8 @@ public static class TestEinaValue {
615 615
616 public static void TestValueConvertInt() 616 public static void TestValueConvertInt()
617 { 617 {
618 using(Eina.Value from = new Eina.Value(Eina.ValueType.Int32)) 618 using (Eina.Value from = new Eina.Value(Eina.ValueType.Int32))
619 using(Eina.Value to = new Eina.Value(Eina.ValueType.UInt32)) { 619 using (Eina.Value to = new Eina.Value(Eina.ValueType.UInt32)) {
620 int source = 0x7FFFFFFF; 620 int source = 0x7FFFFFFF;
621 uint target_uint; 621 uint target_uint;
622 int target_int; 622 int target_int;
@@ -645,8 +645,8 @@ public static class TestEinaValue {
645 645
646 public static void TestValueConvertUInt() 646 public static void TestValueConvertUInt()
647 { 647 {
648 using(Eina.Value from = new Eina.Value(Eina.ValueType.UInt32)) 648 using (Eina.Value from = new Eina.Value(Eina.ValueType.UInt32))
649 using(Eina.Value to = new Eina.Value(Eina.ValueType.UInt32)) { 649 using (Eina.Value to = new Eina.Value(Eina.ValueType.UInt32)) {
650 uint source = 0xFFFFFFFF; 650 uint source = 0xFFFFFFFF;
651 uint target_uint; 651 uint target_uint;
652 string target_str; 652 string target_str;
@@ -673,13 +673,13 @@ public static class TestEinaValue {
673 public static void TestValueContainerConstructorWrongArgs() 673 public static void TestValueContainerConstructorWrongArgs()
674 { 674 {
675 Test.AssertRaises<ArgumentException>(() => { 675 Test.AssertRaises<ArgumentException>(() => {
676 using(Eina.Value array = new Eina.Value(Eina.ValueType.String, Eina.ValueType.String)) { } 676 using (Eina.Value array = new Eina.Value(Eina.ValueType.String, Eina.ValueType.String)) { }
677 }); 677 });
678 } 678 }
679 679
680 public static void TestValueContainerWithNonContainerAccess() 680 public static void TestValueContainerWithNonContainerAccess()
681 { 681 {
682 using(Eina.Value array = new Eina.Value(Eina.ValueType.Int32)) { 682 using (Eina.Value array = new Eina.Value(Eina.ValueType.Int32)) {
683 Test.AssertRaises<Eina.InvalidValueTypeException>(() => array[0] = 1); 683 Test.AssertRaises<Eina.InvalidValueTypeException>(() => array[0] = 1);
684 object val = null; 684 object val = null;
685 Test.AssertRaises<Eina.InvalidValueTypeException>(() => val = array[0]); 685 Test.AssertRaises<Eina.InvalidValueTypeException>(() => val = array[0]);
@@ -688,7 +688,7 @@ public static class TestEinaValue {
688 688
689 public static void TestValueArrayOfSByte() 689 public static void TestValueArrayOfSByte()
690 { 690 {
691 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.SByte)) { 691 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.SByte)) {
692 Test.AssertEquals(0, array.Count()); 692 Test.AssertEquals(0, array.Count());
693 Test.Assert(array.Append(0)); 693 Test.Assert(array.Append(0));
694 Test.AssertEquals(1, array.Count()); 694 Test.AssertEquals(1, array.Count());
@@ -720,7 +720,7 @@ public static class TestEinaValue {
720 720
721 public static void TestValueArrayOfByte() 721 public static void TestValueArrayOfByte()
722 { 722 {
723 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Byte)) { 723 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Byte)) {
724 Test.AssertEquals(0, array.Count()); 724 Test.AssertEquals(0, array.Count());
725 Test.Assert(array.Append(0)); 725 Test.Assert(array.Append(0));
726 Test.AssertEquals(1, array.Count()); 726 Test.AssertEquals(1, array.Count());
@@ -754,7 +754,7 @@ public static class TestEinaValue {
754 754
755 public static void TestValueArrayOfInts() 755 public static void TestValueArrayOfInts()
756 { 756 {
757 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) { 757 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) {
758 Test.AssertEquals(0, array.Count()); 758 Test.AssertEquals(0, array.Count());
759 Test.Assert(array.Append(0)); 759 Test.Assert(array.Append(0));
760 Test.AssertEquals(1, array.Count()); 760 Test.AssertEquals(1, array.Count());
@@ -786,7 +786,7 @@ public static class TestEinaValue {
786 786
787 public static void TestValueArrayOfInt64s() 787 public static void TestValueArrayOfInt64s()
788 { 788 {
789 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int64)) { 789 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int64)) {
790 Test.AssertEquals(0, array.Count()); 790 Test.AssertEquals(0, array.Count());
791 Test.Assert(array.Append(0)); 791 Test.Assert(array.Append(0));
792 Test.AssertEquals(1, array.Count()); 792 Test.AssertEquals(1, array.Count());
@@ -819,7 +819,7 @@ public static class TestEinaValue {
819 public static void TestValueArrayOfUInts() 819 public static void TestValueArrayOfUInts()
820 { 820 {
821 821
822 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.UInt32)) { 822 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.UInt32)) {
823 Test.Assert(array.Append(2)); 823 Test.Assert(array.Append(2));
824 Test.AssertEquals((uint)array[0], (uint)2); 824 Test.AssertEquals((uint)array[0], (uint)2);
825 Test.AssertRaises<OverflowException>(() => array[0] = -1); 825 Test.AssertRaises<OverflowException>(() => array[0] = -1);
@@ -829,7 +829,7 @@ public static class TestEinaValue {
829 public static void TestValueArrayOfStrings() 829 public static void TestValueArrayOfStrings()
830 { 830 {
831 831
832 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.String)) { 832 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.String)) {
833 833
834 Test.Assert(array.Append("hello")); 834 Test.Assert(array.Append("hello"));
835 Test.Assert(array.Append("world")); 835 Test.Assert(array.Append("world"));
@@ -848,7 +848,7 @@ public static class TestEinaValue {
848 public static void TestValueArrayOfObjects() 848 public static void TestValueArrayOfObjects()
849 { 849 {
850 850
851 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Object)) { 851 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Object)) {
852 852
853 var a = new Dummy.TestObject(); 853 var a = new Dummy.TestObject();
854 var b = new Dummy.TestObject(); 854 var b = new Dummy.TestObject();
@@ -870,7 +870,7 @@ public static class TestEinaValue {
870 870
871 871
872 public static void TestArrayOutOfBounds() { 872 public static void TestArrayOutOfBounds() {
873 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) { 873 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) {
874 object placeholder = null; 874 object placeholder = null;
875 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => array[0] = 1); 875 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => array[0] = 1);
876 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => placeholder = array[0]); 876 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => placeholder = array[0]);
@@ -886,16 +886,16 @@ public static class TestEinaValue {
886 } 886 }
887 887
888 public static void TestValueArraySubType() { 888 public static void TestValueArraySubType() {
889 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) 889 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32))
890 Test.AssertEquals(Eina.ValueType.Int32, array.GetValueSubType()); 890 Test.AssertEquals(Eina.ValueType.Int32, array.GetValueSubType());
891 891
892 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.UInt32)) 892 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.UInt32))
893 Test.AssertEquals(Eina.ValueType.UInt32, array.GetValueSubType()); 893 Test.AssertEquals(Eina.ValueType.UInt32, array.GetValueSubType());
894 } 894 }
895 895
896 public static void TestValueArrayConvert() { 896 public static void TestValueArrayConvert() {
897 using(Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32)) 897 using (Eina.Value array = new Eina.Value(Eina.ValueType.Array, Eina.ValueType.Int32))
898 using(Eina.Value other = new Eina.Value(Eina.ValueType.Int32)) { 898 using (Eina.Value other = new Eina.Value(Eina.ValueType.Int32)) {
899 other.Set(100); 899 other.Set(100);
900 other.ConvertTo(array); 900 other.ConvertTo(array);
901 Test.AssertEquals(100, (int)array[0]); 901 Test.AssertEquals(100, (int)array[0]);
@@ -904,7 +904,7 @@ public static class TestEinaValue {
904 } 904 }
905 905
906 public static void TestValueList() { 906 public static void TestValueList() {
907 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) { 907 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) {
908 Test.AssertEquals(0, list.Count()); 908 Test.AssertEquals(0, list.Count());
909 Test.Assert(list.Append(0)); 909 Test.Assert(list.Append(0));
910 Test.AssertEquals(1, list.Count()); 910 Test.AssertEquals(1, list.Count());
@@ -933,13 +933,13 @@ public static class TestEinaValue {
933 Test.AssertEquals("[1984, -42, 5, 42]", list.ToString()); 933 Test.AssertEquals("[1984, -42, 5, 42]", list.ToString());
934 } 934 }
935 935
936 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.UInt32)) { 936 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.UInt32)) {
937 Test.Assert(list.Append(2)); 937 Test.Assert(list.Append(2));
938 Test.AssertEquals((uint)list[0], (uint)2); 938 Test.AssertEquals((uint)list[0], (uint)2);
939 Test.AssertRaises<OverflowException>(() => list[0] = -1); 939 Test.AssertRaises<OverflowException>(() => list[0] = -1);
940 } 940 }
941 941
942 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.String)) { 942 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.String)) {
943 943
944 Test.Assert(list.Append("hello")); 944 Test.Assert(list.Append("hello"));
945 Test.Assert(list.Append("world")); 945 Test.Assert(list.Append("world"));
@@ -956,7 +956,7 @@ public static class TestEinaValue {
956 } 956 }
957 957
958 public static void TestListOutOfBounds() { 958 public static void TestListOutOfBounds() {
959 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) { 959 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) {
960 object placeholder = null; 960 object placeholder = null;
961 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => list[0] = 1); 961 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => list[0] = 1);
962 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => placeholder = list[0]); 962 Test.AssertRaises<System.ArgumentOutOfRangeException>(() => placeholder = list[0]);
@@ -972,16 +972,16 @@ public static class TestEinaValue {
972 } 972 }
973 973
974 public static void TestValueListSubType() { 974 public static void TestValueListSubType() {
975 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) 975 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32))
976 Test.AssertEquals(Eina.ValueType.Int32, list.GetValueSubType()); 976 Test.AssertEquals(Eina.ValueType.Int32, list.GetValueSubType());
977 977
978 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.UInt32)) 978 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.UInt32))
979 Test.AssertEquals(Eina.ValueType.UInt32, list.GetValueSubType()); 979 Test.AssertEquals(Eina.ValueType.UInt32, list.GetValueSubType());
980 } 980 }
981 981
982 public static void TestValueListConvert() { 982 public static void TestValueListConvert() {
983 using(Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32)) 983 using (Eina.Value list = new Eina.Value(Eina.ValueType.List, Eina.ValueType.Int32))
984 using(Eina.Value other = new Eina.Value(Eina.ValueType.Int32)) { 984 using (Eina.Value other = new Eina.Value(Eina.ValueType.Int32)) {
985 other.Set(100); 985 other.Set(100);
986 other.ConvertTo(list); 986 other.ConvertTo(list);
987 Test.AssertEquals(100, (int)list[0]); 987 Test.AssertEquals(100, (int)list[0]);
@@ -991,7 +991,7 @@ public static class TestEinaValue {
991 991
992 public static void TestStringThroughValue() { 992 public static void TestStringThroughValue() {
993 // Check if Value_Native->Value doesn't try to free the pointed string. 993 // Check if Value_Native->Value doesn't try to free the pointed string.
994 using(Eina.Value value_ptr = new Eina.Value(Eina.ValueType.String)) { 994 using (Eina.Value value_ptr = new Eina.Value(Eina.ValueType.String)) {
995 string payload = "Something"; 995 string payload = "Something";
996 value_ptr.Set(payload); 996 value_ptr.Set(payload);
997 Eina.ValueNative byvalue = value_ptr; 997 Eina.ValueNative byvalue = value_ptr;