public void CreateRequest_RequestVersionProperties(string versionString)
        {
            var version = versionString != null?Version.Parse(versionString) : null;

            var clusterModel = GetClusterConfig("cluster0",
                                                new ActiveHealthCheckConfig()
            {
                Enabled = true,
                Policy  = "policy",
            },
                                                version
#if NET
                                                , HttpVersionPolicy.RequestVersionExact
#endif
                                                );
            var destinationModel = new DestinationModel(new DestinationConfig {
                Address = "https://localhost:10000/"
            });
            var factory = new DefaultProbingRequestFactory();

            var request = factory.CreateRequest(clusterModel, destinationModel);

            Assert.Equal(version ?? HttpVersion.Version20, request.Version);
#if NET
            Assert.Equal(HttpVersionPolicy.RequestVersionExact, request.VersionPolicy);
#endif
        }
    public void CreateRequest_HealthEndpointIsNotDefined_UseDestinationAddress(string address, string health, string healthPath, string expectedRequestUri)
    {
        var clusterModel = GetClusterConfig("cluster0",
                                            new ActiveHealthCheckConfig()
        {
            Enabled = true,
            Policy  = "policy",
            Path    = healthPath,
        }, HttpVersion.Version20);
        var destinationModel = new DestinationModel(new DestinationConfig {
            Address = address, Health = health
        });
        var factory = new DefaultProbingRequestFactory();

        var request = factory.CreateRequest(clusterModel, destinationModel);

        Assert.Equal(expectedRequestUri, request.RequestUri.AbsoluteUri);
    }