public void TestLogin()
        {
            var builder = new SonarBeginSettings
            {
                Login = "******"
            }.GetArguments(null);

            var r = builder.Render();
            var s = builder.RenderSafe();

            Console.WriteLine($"Rendered: {r}");
            Console.WriteLine($"Rendered Safe: {s}");

            Assert.Equal(@"begin /d:sonar.login=""tom""", r);
            Assert.Equal(@"begin /d:sonar.login=""[REDACTED]""", s);
        }
        public void PasswordTest()
        {
            var builder = new SonarBeginSettings
            {
                Password = "******"
            }.GetArguments(null);

            var r = builder.Render();
            var s = builder.RenderSafe();

            Console.WriteLine($"Rendered: {r}");
            Console.WriteLine($"Rendered Safe: {s}");

            Assert.Equal(@"begin /d:sonar.password=""p""", r);
            Assert.Equal(@"begin /d:sonar.password=""[REDACTED]""", s);
        }
        public void TestBranchDefault()
        {
            var builder = new SonarBeginSettings
            {
                VersionResult = new VersionResult(),
                Branch        = "master"
            }.GetArguments(null);

            var r = builder.Render();
            var s = builder.RenderSafe();

            Console.WriteLine($"Rendered: {r}");
            Console.WriteLine($"Rendered Safe: {s}");

            Assert.Equal(@"begin /d:sonar.branch.name=""master""", r);
            Assert.Equal(@"begin /d:sonar.branch.name=""master""", s);
        }