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
This commit is contained in:
Xavi Artigas 2020-01-28 17:33:42 +00:00 committed by Marcel Hollerbach
parent c78841efcf
commit 8cdc8e9c8f
1 changed files with 7 additions and 8 deletions

View File

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