Skip to content

Instantly share code, notes, and snippets.

@ThiagoBarradas
Last active January 25, 2021 16:05
Show Gist options
  • Save ThiagoBarradas/b1e2e7d87bef8322dae8e4bb3ef3afda to your computer and use it in GitHub Desktop.
Save ThiagoBarradas/b1e2e7d87bef8322dae8e4bb3ef3afda to your computer and use it in GitHub Desktop.
[Theory]
[InlineData("user@provider.com", true)]
[InlineData("wrong-user", false)]
public static void SendEmail_Should_Validate_Email(string email, bool expectedResult)
{
// arrange
var content = "hello friend!";
var emailSender = new EmailSender();
// act
var emailSended = emailSender.SendEmail(content, email);
// assert
Assert.Equals(expectedResult, emailSended.Result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment