public void ConfirmSpam_Should_Log_Exception() { SetCurrentUser(new Mock <IUser>(), Roles.Administrator); _storyRepository.Setup(r => r.FindById(It.IsAny <Guid>())).Throws <InvalidOperationException>(); log.Setup(l => l.Exception(It.IsAny <Exception>())).Verifiable(); _controller.ConfirmSpam(Guid.NewGuid().Shrink(), Guid.NewGuid().Shrink()); log.Verify(); }