An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
The below code is not able to save test cases with list of configurations.
ITestSuiteCollection testSuites = testproject.TestSuites.ReferencingTestCase(int.Parse(testCaseID));
foreach (var testSuite in testSuites)
{
// var suite = testSuite.TestSuite as IStaticTestSuite;
testSuite.SetDefaultConfigurations(idAndNames);
ITestCaseCollection testcases = testSuite.AllTestCases;
var testCaseEntry = testSuite.TestCases.ToList().Find(k => k.TestCase.Id == int.Parse(testCaseID));
var idAndName = new IdAndName(1, "Configuration");
var listIdName = new List<IdAndName>();
listIdName.Add(idAndName);
testCaseEntry.SetConfigurations(listIdName);
}