I have many 'TestClass' in my project. Each TestClass have many 'TestMethod' in them. These test methods are against exchange online. And exchange online allows only 3 runspaces to be created/active at a given point of time.
But MSTest creates multiple threads to execute each 'TestMethod' within a 'TestClass'. Because of this, I wont be able to re-use (reason is exchange online runspace gets broken frequently and if so, I need to create a new one) just 1 runspace and creating single runspace for each test method is not an option.
Is there anyway I can execute 1 test method at a time ? Is there any alternative. Please help. Thanks.