I have several tests in the same namespace. I did not use naming convention like Test1, Test2, … etc for each of my unit tests. So, now when I run all tests, they don’t run in the order I want them to. Is there a way to order tests?
My tests do not fail if I don’t execute them in a particular order. However, I was just wanted to execute them in the order they are in my test case spreadsheet.
The answer you are looking for is Yes. Although I agree with the principles of isolation there are scenarios where you need to test a sequence of events. In VS 2010 you can create a new ‘Ordered Test’ to bundle and test a set of tests sequentially.