Remember to set and unset the fire and forget method at the top of the attachment and npc tests

This commit is contained in:
Justin Clark-Casey (justincc)
2011-09-08 20:59:52 +01:00
parent bd5d2cb043
commit 96a3b68086
2 changed files with 17 additions and 5 deletions

View File

@@ -50,13 +50,21 @@ namespace OpenSim.Region.OptionalModules.World.NPC.Tests
[TestFixture]
public class NPCModuleTests
{
[SetUp]
public void Init()
[TestFixtureSetUp]
public void FixtureInit()
{
// Don't allow tests to be bamboozled by asynchronous events. Execute everything on the same thread.
Util.FireAndForgetMethod = FireAndForgetMethod.None;
}
[TestFixtureTearDown]
public void TearDown()
{
// We must set this back afterwards, otherwise later tests will fail since they're expecting multiple
// threads. Possibly, later tests should be rewritten not to worry about such things.
Util.FireAndForgetMethod = Util.DefaultFireAndForgetMethod;
}
[Test]
public void TestCreate()
{