How to run test sequences in new MSTests? I have code like this:
[TestMethod, Priority(1)]
public void Test1()
{
//do something
}
[TestMethod, Priority(2)]
public void Test2()
{
//do something
}
but the tests run parallel, I want to run the tests one by one because these tests call the same method. Priority doesn't work.
From this anwer here, you can see that you can also disable parallel execution for a specific test using [DoNotParallelize]
on a test method.