I have created a test case workitem using TFS API.When i am trying to the test case to IStaticTestSuite it was successfull.
if (firstMatchingSuite.TestSuiteType == TestSuiteType.StaticTestSuite)
((IStaticTestSuite)firstMatchingSuite).Entries.Add(testCase);
But i am not able to add a test case to IRequirementTestSuite using the below code.I get "Cannot add or remove test cases" error.
if (firstMatchingSuite.TestSuiteType == TestSuiteType.RequirementTestSuite)
((IRequirementTestSuite)firstMatchingSuite).TestCases.Add(testCase);
Any suggestions ?