Description of TestSuiteExecCmdletBase.
Inheritance: TestExecCmdletBase
 public void RunTestSuite(
     TestSuiteExecCmdletBase cmdlet,
     ITestSuite testSuite)
 {
     foreach (var testScenario in testSuite.TestScenarios.Where(testScenario => null != testScenario.TestCases && 0 < testScenario.TestCases.Count))
     {
         cmdlet.runTwoScriptBlockCollections(
             // 20141211
             // testSuite.BeforeScenario,
             testSuite.BeforeScenario.Select(codeblock => ScriptBlock.Create(codeblock.Code)).ToArray(),
             null, // alternate scriptblocks
             cmdlet,
             testSuite.BeforeScenarioParameters);
         //}
         
         //if (null != testScenario.TestCases && 0 < testScenario.TestCases.Count) {
             
         foreach (ITestCase testCase in testScenario.TestCases) {
                 
             cmdlet.runTwoScriptBlockCollections(
                 // 20141211
                 // testScenario.BeforeTest,
                 testScenario.BeforeTest.Select(codeblock => ScriptBlock.Create(codeblock.Code)).ToArray(),
                 null, // alternate scriptblocks
                 cmdlet,
                 testScenario.BeforeTestParameters);
                 
             cmdlet.runTwoScriptBlockCollections(
                 // 20141211
                 // testCase.TestCode,
                 testCase.TestCode.Select(codeblock => ScriptBlock.Create(codeblock.Code)).ToArray(),
                 null,
                 cmdlet,
                 testCase.TestCodeParameters);
                 
             cmdlet.runTwoScriptBlockCollections(
                 // 20141211
                 // testScenario.AfterTest,
                 testScenario.AfterTest.Select(codeblock => ScriptBlock.Create(codeblock.Code)).ToArray(),
                 null, // alternate scriptblocks
                 cmdlet,
                 testScenario.AfterTestParameters);
                 
         }
         //}
         
         // run AfterScenario scriptblocks
         //if (null != testScenario) {
         cmdlet.runTwoScriptBlockCollections(
             // 20141211
             // testSuite.AfterScenario,
             testSuite.AfterScenario.Select(codeblock => ScriptBlock.Create(codeblock.Code)).ToArray(),
             null, // alternate scriptblocks
             cmdlet,
             testSuite.AfterScenarioParameters);
     }
 }
        public void RunTestSuite(
            TestSuiteExecCmdletBase cmdlet,
            ITestSuite testSuite)
        {
            foreach (var testScenario in testSuite.TestScenarios.Where(testScenario => null != testScenario.TestCases && 0 < testScenario.TestCases.Count))
            {
                cmdlet.runTwoScriptBlockCollections(
                    // 20141211
                    // testSuite.BeforeScenario,
                    testSuite.BeforeScenario.Select(codeblock => ScriptBlock.Create(codeblock.Code)).ToArray(),
                    null, // alternate scriptblocks
                    cmdlet,
                    testSuite.BeforeScenarioParameters);
                //}

                //if (null != testScenario.TestCases && 0 < testScenario.TestCases.Count) {

                foreach (ITestCase testCase in testScenario.TestCases)
                {
                    cmdlet.runTwoScriptBlockCollections(
                        // 20141211
                        // testScenario.BeforeTest,
                        testScenario.BeforeTest.Select(codeblock => ScriptBlock.Create(codeblock.Code)).ToArray(),
                        null, // alternate scriptblocks
                        cmdlet,
                        testScenario.BeforeTestParameters);

                    cmdlet.runTwoScriptBlockCollections(
                        // 20141211
                        // testCase.TestCode,
                        testCase.TestCode.Select(codeblock => ScriptBlock.Create(codeblock.Code)).ToArray(),
                        null,
                        cmdlet,
                        testCase.TestCodeParameters);

                    cmdlet.runTwoScriptBlockCollections(
                        // 20141211
                        // testScenario.AfterTest,
                        testScenario.AfterTest.Select(codeblock => ScriptBlock.Create(codeblock.Code)).ToArray(),
                        null, // alternate scriptblocks
                        cmdlet,
                        testScenario.AfterTestParameters);
                }
                //}

                // run AfterScenario scriptblocks
                //if (null != testScenario) {
                cmdlet.runTwoScriptBlockCollections(
                    // 20141211
                    // testSuite.AfterScenario,
                    testSuite.AfterScenario.Select(codeblock => ScriptBlock.Create(codeblock.Code)).ToArray(),
                    null, // alternate scriptblocks
                    cmdlet,
                    testSuite.AfterScenarioParameters);
            }
        }