public void Raise_EventHasOneSubscriber()
		{
			TestEventClass tec = new TestEventClass();

			int counter = 0;

			tec.TestEvent += (o, e) => { counter += 1; };
			tec.InvokeEvent();

			Assert.AreEqual(counter, 1);
		}
예제 #2
0
        public void Raise_EventHasOneSubscriber()
        {
            TestEventClass tec = new TestEventClass();

            int counter = 0;

            tec.TestEvent += (o, e) => { counter += 1; };
            tec.InvokeEvent();

            Assert.AreEqual(counter, 1);
        }
		public void Raise_EventHasNoSubscribers()
		{
			TestEventClass tec = new TestEventClass();
			tec.InvokeEvent();
		}
예제 #4
0
        public void Raise_EventHasNoSubscribers()
        {
            TestEventClass tec = new TestEventClass();

            tec.InvokeEvent();
        }