summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2020-01-28 17:33:42 +0000
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-04 17:26:30 +0100
commit8cdc8e9c8fe4e018e7a63b49671a398e67725bc9 (patch)
tree6cca7eba2cf25a0276f93fd390c37fc574308e04
parentc78841efcf2fac3dd07e3abff52954e265999b66 (diff)
mono-tests: Fix build after DnD changes
The test struct used to check mono bindings struct pack/unpack is no longer available. Used a different one, and checked the same things. Differential Revision: https://phab.enlightenment.org/D11219
-rw-r--r--src/tests/efl_mono/Structs.cs17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/tests/efl_mono/Structs.cs b/src/tests/efl_mono/Structs.cs
index 151bc8388d..334057c907 100644
--- a/src/tests/efl_mono/Structs.cs
+++ b/src/tests/efl_mono/Structs.cs
@@ -499,15 +499,14 @@ internal class TestStructTuples
499#if EFL_BETA 499#if EFL_BETA
500 public static void test_complex_fields_assign_conversion() { 500 public static void test_complex_fields_assign_conversion() {
501 var pos = new Eina.Position2D(1, 2); 501 var pos = new Eina.Position2D(1, 2);
502 var action = Efl.Ui.SelectionAction.Unknown; 502 uint seat = 3;
503 var format = Efl.Ui.SelectionFormat.None; 503 var types = new System.String[] {"text", "markup"};
504 var item = null as Efl.Canvas.Vg.Object; 504
505 505 Efl.Ui.DropEvent attr = (pos, seat, types);
506 Efl.Dnd.DragPos attr = (pos, action, format, item); 506 Test.AssertEquals(attr.Position, pos);
507 Test.AssertEquals(attr.Pos, pos); 507 Test.AssertEquals(attr.Seat, seat);
508 Test.AssertEquals(attr.Action, action); 508 Test.AssertEquals(attr.AvailableTypes.ElementAt(0), types[0]);
509 Test.AssertEquals(attr.Format, format); 509 Test.AssertEquals(attr.AvailableTypes.ElementAt(1), types[1]);
510 Test.AssertEquals(attr.Item, item);
511 } 510 }
512#endif 511#endif
513} 512}