public void Evaluate_OneColon_UseDefaultCredentials()
        {
            var evaluator     = new ProxyCredentialsParameterEvaluator();
            var span          = new Span <char>(":".ToCharArray());
            var convertResult = new ConvertResult <CurlOptions> {
                Data = new CurlOptions()
            };

            evaluator.Evaluate(ref span, convertResult);

            Assert.True(convertResult.Data.UseDefaultProxyCredentials);
        }
        public void Evaluate_ValidValue_ParsedCorrectly()
        {
            var evaluator     = new ProxyCredentialsParameterEvaluator();
            var span          = new Span <char>("user:pass".ToCharArray());
            var convertResult = new ConvertResult <CurlOptions> {
                Data = new CurlOptions()
            };

            evaluator.Evaluate(ref span, convertResult);

            Assert.False(convertResult.Data.UseDefaultProxyCredentials);
            Assert.Equal("user", convertResult.Data.ProxyUserName);
            Assert.Equal("pass", convertResult.Data.ProxyPassword);
        }