Last active
January 25, 2021 16:04
-
-
Save ThiagoBarradas/52d1b0868c08cf3a70566cab6a013869 to your computer and use it in GitHub Desktop.
xUnit Fact Sample
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
[Fact] | |
public static void SendEmail_Should_Return_Success_When_Receives_A_Valid_Email() | |
{ | |
// arrange | |
var email = "user@provider.com"; | |
var content = "hello friend!"; | |
var emailSender = new EmailSender(); | |
// act | |
var emailSended = emailSender.SendEmail(content, email); | |
// assert | |
Assert.True(emailSended.Result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment