Isolate existing incomplete attachments tests rather than have them rely on each other.
Much easier to debug this way.bulletsim
parent
c58b32e7ba
commit
0bbf7c21d7
|
@ -59,11 +59,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests
|
||||||
public AgentCircuitData acd1;
|
public AgentCircuitData acd1;
|
||||||
public SceneObjectGroup sog1, sog2;
|
public SceneObjectGroup sog1, sog2;
|
||||||
|
|
||||||
[TestFixtureSetUp]
|
[SetUp]
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
TestHelpers.InMethod();
|
|
||||||
|
|
||||||
scene = SceneHelpers.SetupScene("Neighbour x", UUID.Random(), 1000, 1000);
|
scene = SceneHelpers.SetupScene("Neighbour x", UUID.Random(), 1000, 1000);
|
||||||
|
|
||||||
ISharedRegionModule interregionComms = new LocalSimulationConnectorModule();
|
ISharedRegionModule interregionComms = new LocalSimulationConnectorModule();
|
||||||
|
@ -83,7 +81,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void T030_TestAddAttachments()
|
public void TestAddAttachments()
|
||||||
{
|
{
|
||||||
TestHelpers.InMethod();
|
TestHelpers.InMethod();
|
||||||
|
|
||||||
|
@ -97,11 +95,13 @@ namespace OpenSim.Region.CoreModules.Avatar.Attachments.Tests
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void T031_RemoveAttachments()
|
public void TestRemoveAttachments()
|
||||||
{
|
{
|
||||||
TestHelpers.InMethod();
|
TestHelpers.InMethod();
|
||||||
|
|
||||||
ScenePresence presence = scene.GetScenePresence(agent1);
|
ScenePresence presence = scene.GetScenePresence(agent1);
|
||||||
|
presence.AddAttachment(sog1);
|
||||||
|
presence.AddAttachment(sog2);
|
||||||
presence.RemoveAttachment(sog1);
|
presence.RemoveAttachment(sog1);
|
||||||
presence.RemoveAttachment(sog2);
|
presence.RemoveAttachment(sog2);
|
||||||
Assert.That(presence.HasAttachments(), Is.False);
|
Assert.That(presence.HasAttachments(), Is.False);
|
||||||
|
|
Loading…
Reference in New Issue