separate out future common setup code from EventQueueTests.AddForClient()
parent
d5dfbc3844
commit
424735efee
|
@ -45,12 +45,11 @@ namespace OpenSim.Region.ClientStack.Linden.Tests
|
||||||
[TestFixture]
|
[TestFixture]
|
||||||
public class EventQueueTests
|
public class EventQueueTests
|
||||||
{
|
{
|
||||||
[Test]
|
private TestScene m_scene;
|
||||||
public void AddForClient()
|
|
||||||
{
|
|
||||||
TestHelpers.InMethod();
|
|
||||||
log4net.Config.XmlConfigurator.Configure();
|
|
||||||
|
|
||||||
|
[SetUp]
|
||||||
|
public void SetUp()
|
||||||
|
{
|
||||||
MainServer.Instance = new BaseHttpServer(9999, false, 9998, "");
|
MainServer.Instance = new BaseHttpServer(9999, false, 9998, "");
|
||||||
|
|
||||||
IConfigSource config = new IniConfigSource();
|
IConfigSource config = new IniConfigSource();
|
||||||
|
@ -60,10 +59,17 @@ namespace OpenSim.Region.ClientStack.Linden.Tests
|
||||||
CapabilitiesModule capsModule = new CapabilitiesModule();
|
CapabilitiesModule capsModule = new CapabilitiesModule();
|
||||||
EventQueueGetModule eqgModule = new EventQueueGetModule();
|
EventQueueGetModule eqgModule = new EventQueueGetModule();
|
||||||
|
|
||||||
TestScene scene = SceneHelpers.SetupScene();
|
m_scene = SceneHelpers.SetupScene();
|
||||||
SceneHelpers.SetupSceneModules(scene, config, capsModule, eqgModule);
|
SceneHelpers.SetupSceneModules(m_scene, config, capsModule, eqgModule);
|
||||||
|
}
|
||||||
|
|
||||||
SceneHelpers.AddScenePresence(scene, TestHelpers.ParseTail(0x1));
|
[Test]
|
||||||
|
public void AddForClient()
|
||||||
|
{
|
||||||
|
TestHelpers.InMethod();
|
||||||
|
// log4net.Config.XmlConfigurator.Configure();
|
||||||
|
|
||||||
|
SceneHelpers.AddScenePresence(m_scene, TestHelpers.ParseTail(0x1));
|
||||||
|
|
||||||
// TODO: Add more assertions for the other aspects of event queues
|
// TODO: Add more assertions for the other aspects of event queues
|
||||||
Assert.That(MainServer.Instance.GetPollServiceHandlerKeys().Count, Is.EqualTo(1));
|
Assert.That(MainServer.Instance.GetPollServiceHandlerKeys().Count, Is.EqualTo(1));
|
||||||
|
|
Loading…
Reference in New Issue