summaryrefslogtreecommitdiff
path: root/src
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-08 11:01:21 +0100
commit8b25bc41b33cf366ef068b04cc3de55b76310891 (patch)
tree71e200b38e3d4be9cd21057e1103346880761f48 /src
parent645c3d41ebd4b446c45e17a60fddf60302481bcc (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. Reviewed-by: João Paulo Taylor Ienczak Zanette <joao.tiz@expertisesolutions.com.br> Differential Revision: https://phab.enlightenment.org/D11219
Diffstat (limited to 'src')
-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}