public void WithoutAnyAdditionalArguments()
        {
            var app = new FormatWhitespaceCommand().FromArgs(Array.Empty <string>());

            app.Arugments.Skip(1).ToArray() // We skip the project/solution argument as its path will change
            .ShouldAllBeEquivalentTo(new string[] {
                "--fix-whitespace",
            });
        }
 public void WithHelpOption(string arguments)
 {
     try
     {
         var app = new FormatWhitespaceCommand().FromArgs(arguments.Split(" "));
     }
     catch (HelpException helpException)
     {
         helpException.Message.ShouldAllBeEquivalentTo("");
     }
 }
        private static void VerifyArgumentsWithDefault(string arguments, string expected)
        {
            var app          = new FormatWhitespaceCommand().FromArgs(arguments.Split(" "));
            var expectedArgs = expected.Split(" ").ToList();

            expectedArgs.AddRange(
                new string[] {
                "--fix-whitespace",
            });
            app.Arugments.Skip(1).ToArray() // We skip the project/solution argument as its path will change
            .ShouldAllBeEquivalentTo(expectedArgs.ToArray());
        }
        public void WithExcludeOption(string files)
        {
            var app          = new FormatWhitespaceCommand().FromArgs(new string[] { "--exclude", files });
            var expectedArgs = new string[]
            {
                "--exclude",
                files,
                "--fix-whitespace",
            };

            app.Arugments.Skip(1).ToArray() // We skip the project/solution argument as its path will change
            .ShouldAllBeEquivalentTo(expectedArgs.ToArray());
        }