public async Task SendEmailAsync_InValid_MailBoxExc_Test() { _mockOptions .Setup(x => x.Value) .Returns(new EmailServiceSettings() { SMTPServerLogin = "******" }); var result = await emailSendingService.SendEmailAsync("email", "subject", "message", "title"); _mockOptions.Verify(); _mockLoggerService.Verify(); Assert.NotNull(result); Assert.AreEqual(false, result); }