Oct. 16, 2012
4:31 p.m.
On 10/16/2012 08:59 AM, sergio_101 wrote:
a quick question on SUnit..
do tests run in their own space?
No
say i have a model like User..
User has a class variable that is an ordered collection of of users..
User userList <- should give me and ordered collection..
in my tests, if i add users to User userList.. then, in a workspace, i inspect:
User userList
later, i see that my tests users have in fact been added to the ordered collection..
is this expected?
thanks!
Yes You can create a #tearDown method on the instance side of the test class that removes the users from the #userList.