I have a TestSuite (TFS object) object which calls an add method .This add method accepts ITestCase as an argument .This ITestCase interface has different methods and properties described at below link:
http://msdn.microsoft.com/en-us/library/dd984690
Now i want to pass ITestCase object which implements some of those methods mentioned at above link.
var ts = testPlan.TestSuites[i];
var testCase = ts.TestCases.Add(<ITestCase testcase>);
Assuming that you actually want to create a real test case, as opposed to a mock in a unit test (or similar), then this blog post has a code sample which creates one: http://www.ewaldhofman.nl/post/2009/12/11/TFS-SDK-2010-e28093-Part-5-e28093-Create-a-new-Test-Case-work-item.aspx.
Here’s some hacked-together code that creates a new test case, based on the blog entry above, and then adds it to an existing test suite (called “ExampleSuite2”, located in a test plan called “TfsVersioning Test Plan”):
After running this code the new test case appeared in MTM, associated with the target test suite.