0

In our unit tests we have to set up some configuration every time before the tests run. For some reason, though, two unit tests run before our method marked [AssemblyInitializeAttribute].

The two test methods I am referring to are marked appropriately with the [TestMethod] attribute and per MSDN (http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.assemblyinitializeattribute(v=vs.80).aspx) should not be running yet.

Any ideas? Couldn't find anything online that was useful.

2

1 Answer 1

0

It looks like the problem was the two tests were actually in another assembly I must have overlooked that fact and I ran Tests->All Tests In Current Solution

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.