public void IsEventType_should_return_false_for_NServiceBus_types() { var conventions = new NServiceBus.Conventions { IsEventTypeAction = t => t.Assembly == typeof(NServiceBus.Conventions).Assembly }; Assert.IsFalse(conventions.IsEventType(typeof(NServiceBus.Conventions))); }
public void IsEventType_should_return_true_for_matching_type() { var conventions = new NServiceBus.Conventions { IsEventTypeAction = t => t.Assembly == typeof(NServiceBus.Conventions).Assembly || t == typeof(MyConventionEvent) }; Assert.IsTrue(conventions.IsEventType(typeof(MyConventionEvent))); }