| || |
Microsoft Unit Testing - Problem when running mult
I have a [TestClass] and then several [TestMethods]
when I run my TestMethods one at a time they run as expected but when run in a batch they fail. In my [TestClass] i have a int counter variable I use when testing. This variable is incremented each time the test attempts to access the DB. The problem is when running tests in a batch this variable is incremented randomly it seems. Are these tests run on multiple threads??
Any help would be great.