Answers for "get value as parameter on c# unit testing"

C#
0

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);
}
Posted by: Guest on October-07-2021

C# Answers by Framework

Browse Popular Code Answers by Language