public void Retrieves_empty_URI(string value)
        {
            var retriever = new UriValueRetriever();
            var result    = (Uri)retriever.Retrieve(new KeyValuePair <string, string>(IrrelevantKey, value), IrrelevantType, typeof(Uri));

            result.Should().NotBeNull();
            result.IsAbsoluteUri.Should().BeFalse();
            result.OriginalString.Should().Be(value);
        }
        public void Retrieves_absolute_URI()
        {
            const string value     = "https://github.com/techtalk/SpecFlow";
            var          retriever = new UriValueRetriever();

            var result = (Uri)retriever.Retrieve(new KeyValuePair <string, string>(IrrelevantKey, value), IrrelevantType, typeof(Uri));

            result.IsAbsoluteUri.Should().BeTrue();
            result.AbsoluteUri.Should().Be(value);
        }
        public void Retrieves_relative_URI_Unix(string value)
        {
            Skip.IfNot(RuntimeInformation.IsOSPlatform(OSPlatform.Linux) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX));

            var retriever = new UriValueRetriever();

            var result = (Uri)retriever.Retrieve(new KeyValuePair <string, string>(IrrelevantKey, value), IrrelevantType, typeof(Uri));

            result.IsAbsoluteUri.Should().BeFalse();
            result.OriginalString.Should().Be(value);
        }