public void DeregisterHandlers_NullLog_ThrowsArgumentNullException() { var eventManager = Mock.Of <IEventManager>(); Assert.Throws <ArgumentNullException>( () => IEventManagerExtensions.DeregisterHandlers(eventManager, new object(), null !)); }
public void DeregisterHandlers_NullObj_ThrowsArgumentNullException() { var eventManager = Mock.Of <IEventManager>(); var log = Mock.Of <ILogger>(); Assert.Throws <ArgumentNullException>( () => IEventManagerExtensions.DeregisterHandlers(eventManager, null !, log)); }