Exemplo n.º 1
0
        public void NoParameters()
        {
            // arrange
            var fixture = new SonarScannerToolFixture(new SonarScannerSettings());

            //act
            fixture.Run();

            //assert
            Assert.Equal(string.Empty, fixture.ProcessRunner.Results.Single().Args);
        }
Exemplo n.º 2
0
        public void Parameters()
        {
            // arrange
            var fixture = new SonarScannerToolFixture(new SonarScannerSettings
            {
                Debug      = true,
                Properties = new Dictionary <string, string>
                {
                    { "aa", "bb" }
                }
            });

            //act
            fixture.Run();

            //assert
            Assert.Equal("-X -Daa=bb", fixture.ProcessRunner.Results.Single().Args);
        }