Although my current context is SharePoint related this question applies to testing in general where I would like to run the same set of tests but with different parameters.
I have existing tests that test my Sharepoint code (that use the SharePoint Client Object Model) against SharePoint 2010. This is all working fine. A helper method in the base class provides the appropriate url for the SharePoint 2010 instance.
I now want to run these tests against SharePoint 2013 also. I was considering creating another test configuration for SharePoint 2013 and based on the configuration that is being executed I can use the appropriate url. In the method decorated with the 'ClassInitialize' attribute I do not get any information about the testsettings file being used and hence no way to know which configuration is being executed.
How can I achieve what I want - run the same tests against SharePoint 2010 and 2013?