Beispiel #1
0
        public static void event_with_string_payload()
        {
            var    obj             = new Dummy.TestObject();
            string received_string = null;

            obj.EvtWithStringEvent += (object sender, Dummy.TestObjectEvtWithStringEventArgs e) => {
                received_string = e.arg;
            };

            obj.EmitEventWithString("Some args");

            Test.AssertEquals("Some args", received_string);
        }