private MatchesExpressionsReturnsTrueWhenSingleExpressionMatchesLocationTest ( ) : void | ||
return | void |
public void MatchesExpressionsReturnsTrueWhenSingleExpressionMatchesLocationTest()
{
var actualLocation = new Uri("http://www.test.com/customers/1233/products");
var expressions = new List<Regex>
{
new Regex("http://www\\.test\\.com/customers/\\d+/products(/)?$")
};
var target = new RegexLocationValidator();
var actual = target.Matches(actualLocation, expressions);
actual.Should().BeTrue();
}