private static void VerifyArguments(string arguments, string expected)
        {
            var app          = new FormatStyleCommand().FromArgs(arguments.Split(" "));
            var expectedArgs = expected.Split(" ").ToList();

            app.Arugments.Skip(1).ToArray() // We skip the project/solution argument as its path will change
            .ShouldAllBeEquivalentTo(expectedArgs.ToArray());
        }
        public void WithoutAnyAdditionalArguments()
        {
            var app = new FormatStyleCommand().FromArgs(Array.Empty <string>());

            app.Arugments.Skip(1).ToArray() // We skip the project/solution argument as its path will change
            .ShouldAllBeEquivalentTo(new string[] {
                "--fix-style",
            });
        }
 public void WithHelpOption(string arguments)
 {
     try
     {
         var app = new FormatStyleCommand().FromArgs(arguments.Split(" "));
     }
     catch (HelpException helpException)
     {
         helpException.Message.ShouldAllBeEquivalentTo("");
     }
 }
        public void WithExcludeOption(string files)
        {
            var app          = new FormatStyleCommand().FromArgs(new string[] { "--exclude", files });
            var expectedArgs = new string[]
            {
                "--exclude",
                files,
                "--fix-style",
            };

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