mono-tests: Fix build after DnD changes
authorXavi Artigas <xavierartigas@yahoo.es>
Tue, 28 Jan 2020 17:33:42 +0000 (17:33 +0000)
committerTaehyub Kim <taehyub.kim@samsung.com>
Tue, 10 Mar 2020 11:08:51 +0000 (20:08 +0900)
The test struct used to check mono bindings struct pack/unpack
is no longer available. Used a different one, and checked the same things.

Reviewed-by: João Paulo Taylor Ienczak Zanette <joao.tiz@expertisesolutions.com.br>
Differential Revision: https://phab.enlightenment.org/D11219

src/tests/efl_mono/Structs.cs

index 151bc8388d6efec737d845bb013b1f7fa4e4d5b3..334057c907916a55b0775eb6410417faae33da34 100644 (file)
@@ -499,15 +499,14 @@ internal class TestStructTuples
 #if EFL_BETA
     public static void test_complex_fields_assign_conversion() {
         var pos = new Eina.Position2D(1, 2);
-        var action = Efl.Ui.SelectionAction.Unknown;
-        var format = Efl.Ui.SelectionFormat.None;
-        var item = null as Efl.Canvas.Vg.Object;
-
-        Efl.Dnd.DragPos attr = (pos, action, format, item);
-        Test.AssertEquals(attr.Pos, pos);
-        Test.AssertEquals(attr.Action, action);
-        Test.AssertEquals(attr.Format, format);
-        Test.AssertEquals(attr.Item, item);
+        uint seat = 3;
+        var types = new System.String[] {"text", "markup"};
+
+        Efl.Ui.DropEvent attr = (pos, seat, types);
+        Test.AssertEquals(attr.Position, pos);
+        Test.AssertEquals(attr.Seat, seat);
+        Test.AssertEquals(attr.AvailableTypes.ElementAt(0), types[0]);
+        Test.AssertEquals(attr.AvailableTypes.ElementAt(1), types[1]);
     }
 #endif
 }