Esempio n. 1
0
File: Events.cs Progetto: sav/efl
        public static void event_with_object_payload()
        {
            test.ITesting obj          = new test.Testing();
            test.ITesting received_obj = null;

            obj.EvtWithObjEvt += (object sender, EvtWithObjEvt_Args e) => {
                received_obj = e.arg;
            };

            test.ITesting sent_obj = new test.Testing();

            obj.EmitEventWithObj(sent_obj);

            Test.AssertEquals(sent_obj, received_obj);
        }