예제 #1
0
파일: Events.cs 프로젝트: sav/efl
        public static void event_with_struct_payload()
        {
            test.ITesting     obj             = new test.Testing();
            test.StructSimple received_struct = default(test.StructSimple);

            obj.EvtWithStructEvt += (object sender, EvtWithStructEvt_Args e) => {
                received_struct = e.arg;
            };

            test.StructSimple sent_struct = default(test.StructSimple);
            sent_struct.Fstring = "Struct Event";

            obj.EmitEventWithStruct(sent_struct);

            Test.AssertEquals(sent_struct.Fstring, received_struct.Fstring);
        }