public void Apply_NoEventSubscrition_NoExceptions() { var original = new GenericEvent1(); var eventStyle = new GenericEvent1(); _eventApplier.Apply(original, eventStyle); original.OnEvent(); }
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(); }