Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MailManagerTest
- {
- [Fact]
- public void NotValidEmail()
- {
- //Arrange
- var mailManager = new MailManager();
- const string mailAddress = "john.smith.company.com";
- //Act
- bool isValid = mailManager.IsValidAddress(mailAddress);
- //Assert
- Assert.False(isValid, $"The email {mailAddress} is valid, but it shouldn’t");
- }
- }
Add Comment
Please, Sign In to add comment