Headless.UnitTests.RegexLocationValidatorTests.MatchesExpressionsReturnsTrueWhenSingleExpressionMatchesLocationTest C# (CSharp) Method

MatchesExpressionsReturnsTrueWhenSingleExpressionMatchesLocationTest() private method

        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();
        }