Last active
January 25, 2021 16:05
-
-
Save ThiagoBarradas/b1e2e7d87bef8322dae8e4bb3ef3afda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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