Beispiel #1
0
        public void Apply_NoEventSubscrition_NoExceptions()
        {
            var original   = new GenericEvent1();
            var eventStyle = new GenericEvent1();

            _eventApplier.Apply(original, eventStyle);
            original.OnEvent();
        }
Beispiel #2
0
        public void Apply_OneEventSubscribed_SubScriberCopied()
        {
            var original   = new GenericEvent1();
            var eventStyle = new GenericEvent1();

            eventStyle.Event += DoSomething;

            _eventApplier.Apply(original, eventStyle);
            original.OnEvent();

            A.CallToSet(() => _flag.Flag).To(true).MustHaveHappened();
        }