Last active
January 25, 2021 16:05
-
-
Save ThiagoBarradas/96ff9d16fab7aab4793de0ef6e4ec6f2 to your computer and use it in GitHub Desktop.
xUnit Fact Sample 2
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_Failed_When_Receives_A_Invalid_Email() | |
{ | |
// arrange | |
var email = "wrong-email"; | |
var content = "hello friend!"; | |
var emailSender = new EmailSender(); | |
// act | |
var emailSended = emailSender.SendEmail(content, email); | |
// assert | |
Assert.False(emailSended.Result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment