Tmx.TestData.GetTestSuiteId C# (CSharp) Method

GetTestSuiteId() static private method

static private GetTestSuiteId ( ) : string
return string
        internal static string GetTestSuiteId()
        {
            string result = string.Empty;            
            
            // read the last id used and generate a new one
            int testNumber = null != TestSuites ? TestSuites.Count : 1;
            bool noValidId = true;
            do {
                foreach (var suite in TestSuites) {
                    if (suite.Id == testNumber.ToString()) {
                        testNumber++;
                    }
                }
                // TestData.TestSuites.Select(ts => ts.Id == testNumber.Where(ts => ts.Id == testNumber).ForEach(ts => ts == testNumber ? testNumber++ : continue }
                noValidId = false;
                result = testNumber.ToString();
            } while (noValidId);
            
            return result;
        }