Exemple #1
0
        public void TestStartingPass__NullArgument()
        {
            EventData <IPass> .OnEvent onEvent = Substitute.For <EventData <IPass> .OnEvent>();
            progress.OnPassStarted.Add(onEvent);

            ArgumentNullException ex = Assert.Throws <ArgumentNullException>(delegate
            {
                progress.PassStarted(null);
            });

            Assert.Equal("pass", ex.ParamName);

            logger.DidNotReceiveWithAnyArgs().Log(LogType.Log, null);
            onEvent.DidNotReceiveWithAnyArgs()(null);
        }