get value as parameter on c# unit testing
[Test]
[TestCase("[email protected]")]
[TestCase("[email protected]")]
[TestCase("[email protected]")]
public void ValidateEmail_supports_common_email_addresses(string emailAddress)
{
// ARRANGE
var sut = new EmailValidator();
// ACT
var result = sut.ValidateEmail(emailAddress);
// ASSERT
Assert.That(result.IsValid, Is.True);
}