示例#1
0
文件: Events.cs 项目: AmarokPL/efl
        public static void event_with_bool_payload()
        {
            var  obj           = new Dummy.TestObject();
            bool received_bool = false;

            obj.EvtWithBoolEvent += (object sender, Dummy.TestObjectEvtWithBoolEventArgs e) => {
                received_bool = e.arg;
            };

            obj.EmitEventWithBool(true);

            Test.AssertEquals(true, received_bool);

            obj.EmitEventWithBool(false);

            Test.AssertEquals(false, received_bool);
        }