public void UseCase3_TFSBuildToolSampleArguments()
        {
            b.Info.Log("Starting UseCase3 - TBuildtool Sample UseCase");

            var argsupport = new CommandArgumentSupport();

            argsupport.ArgumentPrefix  = "-";
            argsupport.ArgumentPostfix = "=";
            TFSBuildToolArgs parsedArgs = new TFSBuildToolArgs();

            string[] expectedArguments = new string[] { "-tfs=http://appsd1011:8080", "-teamproject=Acme", "-builddefinition=BuildTasks_CERTIFIED", "-agenturi=wks3090852" };
            argsupport.ProcessArguments(parsedArgs, expectedArguments);

            Assert.Equal("wks3090852", parsedArgs.agentUri);
            Assert.Equal("BuildTasks_CERTIFIED", parsedArgs.buildDefinition);
            Assert.Equal("http://appsd1011:8080", parsedArgs.tfs);
            Assert.Equal("Acme", parsedArgs.teamProject);

            expectedArguments[3] = "-agent=wks3090852";  // Test alternative parameter naming.
            parsedArgs           = new TFSBuildToolArgs();

            argsupport.ProcessArguments(parsedArgs, expectedArguments);

            Assert.Equal("wks3090852", parsedArgs.agentUri);
            Assert.Equal("BuildTasks_CERTIFIED", parsedArgs.buildDefinition);
            Assert.Equal("http://appsd1011:8080", parsedArgs.tfs);
            Assert.Equal("Acme", parsedArgs.teamProject);
        }
        [Trait(Traits.Style, Traits.Regression)] // Legacy Tests, replace when working on them.
        public void BasicTest_MultipleArgumentsSameValue()
        {
            var clas = new CommandArgumentSupport();

            clas.ArgumentPrefix  = "/";
            clas.ArgumentPostfix = "=";

            var tbta1 = new TFSBuildToolArgs();
            var tbta2 = new TFSBuildToolArgs();

            string[] args  = new string[] { "/tfs=first", "/agent=second", "/teamproject=acme" };
            string[] args2 = new string[] { "/tfs=first", "/agenturi=second", "/teamproject=acme" };

            clas.ProcessArguments(tbta1, args);
            clas.ProcessArguments(tbta2, args2);

            Assert.Equal(tbta1.agentUri, tbta2.agentUri);
        }