This problem is non-deterministic as it involves race conditions. I have many TestFixtures that use the same resource object assigned to a local variable. It was my understanding that TestFixtures don't share state unless they are nested. Occasionally it appears that aliasing is occurring between TestFixtures, so that if I change a value in one TestFixture it changes the value in the other TestFixture. I'm not running these in Parallel. I'm just running them with nunit-console.exe via NAnt, or ReSharper (I know I know). The only thing I can think of is that they are both inherited from the same base abstract TestFixture. I've gotten into the habit of giving the objects new Guid's as thats the only thing they need to be unique in case everything else is aliased, yet it appears when I give them new Guids that multiple TestFixtures are running in Parallel and they end up using which ever Guid gets there first. My question is if its even possible for TestFixtures to share state like this? I thought each TestFixture was run like a separate process? I know work arounds, but this is like "spooky behaviour at a distance" that I thought I'd bring up.
--
You received this message because you are subscribed to the Google Groups "NUnit-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nunit-discus...@googlegroups.com.
To post to this group, send email to nunit-...@googlegroups.com.
Visit this group at http://groups.google.com/group/nunit-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
--To unsubscribe from this topic, visit https://groups.google.com/d/topic/nunit-discuss/o2jaCxx_UJ4/unsubscribe.
You received this message because you are subscribed to a topic in the Google Groups "NUnit-Discuss" group.
To unsubscribe from this group and all its topics, send an email to nunit-discus...@googlegroups.com.
Visit this group at http://groups.google.com/group/nunit-discuss.