Example #1
0
        public void PerformSomeAction_LogsMessage_WhenActionSuccessfullyCompletes()
        {
            var vm = new Example1b(logger.Object);

            vm.PerformSomeAction();

            logger.Verify(x => x.LogMessage(Example1b.JobCompleteMessage), Times.Once());
        }
Example #2
0
        public void PerformSomeAction_LogsMessage_WhenActionSuccessfullyCompletes()
        {
            var vm = new Example1b(logger.Object);
            vm.PerformSomeAction();

            logger.Verify(x => x.LogMessage(Example1b.JobCompleteMessage), Times.Once());
        }