Exemple #1
0
        public static void SearchForSuitesPS(SearchCmdletBase cmdlet)
        {
            IOrderedEnumerable<TestSuite> suites =
                SearchForSuites(cmdlet);

            if (suites.Count<TMX.TestSuite>() > 0) {
                cmdlet.WriteObject(suites, true);
            } else {
                cmdlet.WriteObject(null);
            }
        }
Exemple #2
0
        public static void SearchForTestResultsPS(SearchCmdletBase cmdlet)
        {
            IOrderedEnumerable<TestResult> testResults =
                SearchForTestResults(cmdlet);

            if (testResults.Count<TMX.TestResult>() > 0) {
                cmdlet.WriteObject(testResults, true);
            } else {
                cmdlet.WriteObject(null);
            }
        }
Exemple #3
0
        public static void SearchForScenariosPS(SearchCmdletBase cmdlet)
        {
            IOrderedEnumerable<TestScenario> scenarios =
                SearchForScenarios(cmdlet);

            if (scenarios.Count<TMX.TestScenario>() > 0) {
                cmdlet.WriteObject(scenarios, true);
            } else {
                cmdlet.WriteObject(null);
            }
        }