Meyn.TestLink.TestLink.GetTestCasesForTestSuite C# (CSharp) Method

GetTestCasesForTestSuite() public method

get test cases contained in a test suite
public GetTestCasesForTestSuite ( int testSuiteid, bool deep ) : List
testSuiteid int id of the test suite
deep bool Set the deep flag to false if you only want test cases in the test suite provided and no child test cases.
return List
        public List<TestCaseFromTestSuite> GetTestCasesForTestSuite(int testSuiteid, bool deep)
        {

            stateIsValid();
            List<TestCaseFromTestSuite> result = new List<TestCaseFromTestSuite>();
            object response = proxy.getTestCasesForTestSuite(devkey, testSuiteid, deep, "full");
            if ((response is string) && ((string)response == string.Empty))
                // equals null return
                return result;
            handleErrorMessage(response);
            object[] list = response as object[];
            if (list != null) {
                foreach (XmlRpcStruct data in list) {
                    TestCaseFromTestSuite tc = new TestCaseFromTestSuite(data);
                    result.Add(tc);
                }
            }
            return result;
        }
        /// <summary>