Bari.Console.Test.ConsoleParametersTest.CommandWithArgsAndVerboseSwitch C# (CSharp) Method

CommandWithArgsAndVerboseSwitch() private method

private CommandWithArgsAndVerboseSwitch ( ) : void
return void
        public void CommandWithArgsAndVerboseSwitch()
        {
            var ps = new ConsoleParameters(new[] { "-v", "cmd", "1", "2", "3" });
            ps.Command.Should().Be("cmd"); // default command
            ps.CommandParameters.Should().BeEquivalentTo(new[] { "1", "2", "3" });
            ps.VerboseOutput.Should().BeTrue();
            ps.Goal.Should().BeNull(); // default goal
        }