Let's try giving Common a default constructor instead of the workaround
parent
6a0b7a607f
commit
8b6557e377
|
@ -60,6 +60,10 @@ namespace OpenSim.Tests.Permissions
|
||||||
private TestScene m_Scene;
|
private TestScene m_Scene;
|
||||||
private ScenePresence[] m_Avatars = new ScenePresence[3];
|
private ScenePresence[] m_Avatars = new ScenePresence[3];
|
||||||
|
|
||||||
|
public Common()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public override void SetUp()
|
public override void SetUp()
|
||||||
{
|
{
|
||||||
|
|
|
@ -44,13 +44,6 @@ namespace OpenSim.Tests.Permissions
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void SetUp()
|
public void SetUp()
|
||||||
{
|
{
|
||||||
// In case we're dealing with some older version of nunit
|
|
||||||
if (Common.TheInstance == null)
|
|
||||||
{
|
|
||||||
Common.TheInstance = new Common();
|
|
||||||
Common.TheInstance.SetUp();
|
|
||||||
}
|
|
||||||
|
|
||||||
Common.TheInstance.DeleteObjectsFolders();
|
Common.TheInstance.DeleteObjectsFolders();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,12 +46,6 @@ namespace OpenSim.Tests.Permissions
|
||||||
[SetUp]
|
[SetUp]
|
||||||
public void SetUp()
|
public void SetUp()
|
||||||
{
|
{
|
||||||
// In case we're dealing with some older version of nunit
|
|
||||||
if (Common.TheInstance == null)
|
|
||||||
{
|
|
||||||
Common.TheInstance = new Common();
|
|
||||||
Common.TheInstance.SetUp();
|
|
||||||
}
|
|
||||||
Common.TheInstance.DeleteObjectsFolders();
|
Common.TheInstance.DeleteObjectsFolders();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue