Esempio n. 1
0
		public void TestInvokeEventHandler ()
		{
			ArgsPoker e = new ArgsPoker (Keyboard.PrimaryDevice, 0);
			object test_obj = new object ();

			e.DoInvokeEventHandler (Delegate.CreateDelegate (typeof (InputEventHandler), this, "input_delegate"), test_obj);

			Assert.IsTrue (delegate_reached);
			Assert.AreEqual (test_obj, delegate_sender);
			Assert.AreEqual (e, delegate_args);
		}
Esempio n. 2
0
        public void TestInvokeEventHandler()
        {
            ArgsPoker e        = new ArgsPoker(Keyboard.PrimaryDevice, 0);
            object    test_obj = new object();

            e.DoInvokeEventHandler(Delegate.CreateDelegate(typeof(InputEventHandler), this, "input_delegate"), test_obj);

            Assert.IsTrue(delegate_reached);
            Assert.AreEqual(test_obj, delegate_sender);
            Assert.AreEqual(e, delegate_args);
        }