コード例 #1
0
        public void DeregisterHandlers_NullLog_ThrowsArgumentNullException()
        {
            var eventManager = Mock.Of <IEventManager>();

            Assert.Throws <ArgumentNullException>(
                () => IEventManagerExtensions.DeregisterHandlers(eventManager, new object(), null !));
        }
コード例 #2
0
        public void DeregisterHandlers_NullObj_ThrowsArgumentNullException()
        {
            var eventManager = Mock.Of <IEventManager>();
            var log          = Mock.Of <ILogger>();

            Assert.Throws <ArgumentNullException>(
                () => IEventManagerExtensions.DeregisterHandlers(eventManager, null !, log));
        }