Beispiel #1
0
        public void should_be_able_to_EncueueCallback_with_asyncronous_test()
        {
            var eventClass = new SomeEventClass();
            bool eventRaised = false;
            eventClass.FiredEvent += (sender, e) => { eventRaised = true; };

            EnqueueCallback(eventClass.FireTheEvent);
            EnqueueCallback(() => Assert.IsTrue(eventRaised));

            EnqueueTestComplete();
        }
Beispiel #2
0
        public void should_be_able_to_EncueueCallback_with_asyncronous_test()
        {
            var  eventClass  = new SomeEventClass();
            bool eventRaised = false;

            eventClass.FiredEvent += (sender, e) => { eventRaised = true; };

            EnqueueCallback(eventClass.FireTheEvent);
            EnqueueCallback(() => Assert.IsTrue(eventRaised));

            EnqueueTestComplete();
        }