I am using Visual Studio 2010 C# to unit test ASMX web services. I have added a web service reference to my unit Test project. Each unit test invokes methods on the ASMX web service under test and validates its responses which are in XML.

In addition to the ASMX webservices, we have a parallel development of WCF web services which are functionally identical to their ASMX counter parts.

My aim is to use the same battery of unit tests to test both ASMX and WCF services. What is the best way to switch between the two types of web services without having to duplicate my unit tests code. I would also like to avoid any manual steps during the switch over from ASMX to WCF and visa versa. Ideally, I'd like to test my full suite of tests for both ASMX and WCF under a single TFS Test plan run.

Any thouhts?