Headless.UnitTests.RelaxedFolderLocationValidatorTests.MatchesLocationThrowsExceptionWithRelativeExpectedLocationTest C# (CSharp) Method

MatchesLocationThrowsExceptionWithRelativeExpectedLocationTest() private method

        public void MatchesLocationThrowsExceptionWithRelativeExpectedLocationTest()
        {
            var actualLocation = new Uri("http://www.test.com/some/time");
            var expectedLocation = new Uri("/some/Time", UriKind.Relative);

            var target = new RelaxedFolderLocationValidator();

            Action action = () => target.Matches(actualLocation, expectedLocation);

            action.ShouldThrow<ArgumentException>();
        }