Amido.PreProcessor.Cmd.Tests.PreProcessRunnerTests.TestRun_WithInvalidArgs_ExpectException C# (CSharp) Method

TestRun_WithInvalidArgs_ExpectException() private method

private TestRun_WithInvalidArgs_ExpectException ( ) : void
return void
        public void TestRun_WithInvalidArgs_ExpectException()
        {
            var args = new string[] { "/SomeArg=SomeValue" };
            Xunit.Assert.Throws<ArgumentException>(() => this.preProcessorRunner.Run(args));

            args = new string[] { "/SomeArg=SomeValue", "/SourceFile=someFile.xml", "/StaticPropertiesFile=somePropertiesFile.xml" };
            Xunit.Assert.Throws<ArgumentException>(() => this.preProcessorRunner.Run(args));

            args = new string[] { "/SomeArg=SomeValue", "/SourceFile=someFile.xml", "/StaticPropertiesFile=somePropertiesFile.xml", "/OverridesFile=someOverridesFile.xml" };
            Xunit.Assert.Throws<ArgumentException>(() => this.preProcessorRunner.Run(args));

            args = new string[] { "/SourceFile=someFile.xml", "/StaticPropertiesFile=somePropertiesFile.xml" };
            Xunit.Assert.Throws<ArgumentException>(() => this.preProcessorRunner.Run(args));

            args = new string[] { "/DestinationFile=someOtherFile.xml", "/StaticPropertiesFile=somePropertiesFile.xml" };
            Xunit.Assert.Throws<ArgumentException>(() => this.preProcessorRunner.Run(args));

            args = new string[] { "/SourceFile=someFile.xml", "/StaticPropertiesFile=somePropertiesFile.xml", "/ManifestFile=someManifestFile.xml" };
            Xunit.Assert.Throws<ArgumentException>(() => this.preProcessorRunner.Run(args));

            args = new string[] { "/DestinationFile=someOtherFile.xml", "/StaticPropertiesFile=somePropertiesFile.xml", "/ManifestFile=someManifestFile.xml" };
            Xunit.Assert.Throws<ArgumentException>(() => this.preProcessorRunner.Run(args));

            args = new string[] { "/SourceFile=someFile.xml", "/DestinationFile=someOtherFile.xml", "/StaticPropertiesFile=somePropertiesFile.xml", "/ManifestFile=someManifestFile.xml" };
            Xunit.Assert.Throws<ArgumentException>(() => this.preProcessorRunner.Run(args));
        }