public void Flags()
        {
            // Launch
            Assert.False(CommandLineArgumentsFactory.Parse(new ApplicationUpdaterConfig {
                CommandLine = "setup install"
            }).Launch);
            Assert.True(CommandLineArgumentsFactory.Parse(new ApplicationUpdaterConfig {
                CommandLine = "setup install /launch"
            }).Launch);
            Assert.True(CommandLineArgumentsFactory.Parse(new ApplicationUpdaterConfig {
                CommandLine = "setup install /start"
            }).Launch);

            // Silent
            Assert.False(CommandLineArgumentsFactory.Parse(new ApplicationUpdaterConfig {
                CommandLine = "setup install"
            }).Silent);
            Assert.True(CommandLineArgumentsFactory.Parse(new ApplicationUpdaterConfig {
                CommandLine = "setup install /silent"
            }).Silent);
            Assert.True(CommandLineArgumentsFactory.Parse(new ApplicationUpdaterConfig {
                CommandLine = "setup install /quiet"
            }).Silent);

            // Elevation
            Assert.False(CommandLineArgumentsFactory.Parse(new ApplicationUpdaterConfig {
                CommandLine = "setup install"
            }).Elevate);
            Assert.True(CommandLineArgumentsFactory.Parse(new ApplicationUpdaterConfig {
                CommandLine = "setup install /uac"
            }).Elevate);
            Assert.True(CommandLineArgumentsFactory.Parse(new ApplicationUpdaterConfig {
                CommandLine = "setup install /admin"
            }).Elevate);
            Assert.True(CommandLineArgumentsFactory.Parse(new ApplicationUpdaterConfig {
                CommandLine = "setup install /elevate"
            }).Elevate);
        }
 public void CustomSetupArg()
 {
     Assert.True(CommandLineArgumentsFactory.Parse(new ApplicationUpdaterConfig {
         CommandLineArgument = "installsharp", CommandLine = "installsharp /launch"
     }).Launch);
 }