Ejemplo n.º 1
0
        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);
        }