예제 #1
0
파일: Events.cs 프로젝트: AmarokPL/efl
        public static void event_with_float_payload()
        {
            var   obj            = new Dummy.TestObject();
            float received_float = 0;

            obj.EvtWithFloatEvent += (object sender, Dummy.TestObjectEvtWithFloatEventArgs e) => {
                received_float = e.arg;
            };

            obj.EmitEventWithFloat(3.14f);

            Test.AssertAlmostEquals(3.14f, received_float);
        }