Example #1
0
        public static void event_with_error_payload()
        {
            var obj = new Dummy.TestObject();

            Eina.Error received_error = 0;

            obj.EvtWithErrorEvent += (object sender, Dummy.TestObjectEvtWithErrorEventArgs e) => {
                received_error = e.arg;
            };

            Eina.Error sent_error = -2001;

            obj.EmitEventWithError(sent_error);

            Test.AssertEquals(sent_error, received_error);
        }