N
NoNick
I am using VS 2005 with all the Team Testing functionality. I have
created several TestClasses. Each has a ClassCleanup as needed.
My understanding is that ClassCleanup should execute when all
TestMethods in a TestClass are finished. So, if I have TestClassA and
TestClassB, when TestClassA has finished all its TestMethods, its
ClassCleanup will execute. Next, TestClassB will execute its
TestMethods and then its ClassCleanup will execute.
However, I am finding that ClassCleanup acts more like an
AssemblyCleanup and runs after all TestClasses have executed their
TestMethods. So, TestClassA executes its tests and then TestClassB
executes its tests and, finally, TestClassA.ClassCleanup runs,
immediately followed by TestClassB.ClassCleanup.
Is this proper behavior? Is there some setting I have to change?
Thanks.
created several TestClasses. Each has a ClassCleanup as needed.
My understanding is that ClassCleanup should execute when all
TestMethods in a TestClass are finished. So, if I have TestClassA and
TestClassB, when TestClassA has finished all its TestMethods, its
ClassCleanup will execute. Next, TestClassB will execute its
TestMethods and then its ClassCleanup will execute.
However, I am finding that ClassCleanup acts more like an
AssemblyCleanup and runs after all TestClasses have executed their
TestMethods. So, TestClassA executes its tests and then TestClassB
executes its tests and, finally, TestClassA.ClassCleanup runs,
immediately followed by TestClassB.ClassCleanup.
Is this proper behavior? Is there some setting I have to change?
Thanks.