public void TestEndSettings() { var builder = _beginSettings.GetEndSettings().GetArguments(null); var r = builder.Render(); var s = builder.RenderSafe(); Console.WriteLine($"Rendered: {r}"); Console.WriteLine($"Rendered Safe: {s}"); Assert.Equal(@"end /d:sonar.login=""tom"" /d:sonar.password=""god""", r); Assert.Equal(@"end /d:sonar.login=""[REDACTED]"" /d:sonar.password=""[REDACTED]""", s); }
public void TestGetEndSettingsFromBeginSettings() { var s = new SonarBeginSettings { Login = "******", Password = "******", Silent = true }; var endSettings = s.GetEndSettings(); Assert.Equal("tom", endSettings.Login); Assert.Equal("god", endSettings.Password); Assert.True(endSettings.Silent); }