public void SuggestTags_Should_Log_Exception() { log.Setup(l => l.Exception(It.IsAny <Exception>())).Verifiable(); _tagRepository.Setup(r => r.FindMatching(It.IsAny <string>(), It.IsAny <int>())).Throws <Exception>(); _controller.SuggestTags("xxx", null, null); log.Verify(); }