Esempio n. 1
0
        public static void test_nonconflicting_events()
        {
            var obj    = new Dummy.TestObject();
            var called = false;

            EventHandler cb = (object sender, EventArgs e) => {
                called = true;
            };

            obj.NonconflictedEvent += cb;
            obj.EmitNonconflicted();
            Test.Assert(called);
        }