Strengthen the tests for the possibility that SetUpFixture does not run in the beginning.

This commit is contained in:
Diva Canto
2017-08-14 16:33:21 -07:00
parent 26a4c5ff85
commit 40f4b30361
3 changed files with 14 additions and 5 deletions

View File

@@ -44,6 +44,13 @@ namespace OpenSim.Tests.Permissions
[SetUp]
public void SetUp()
{
// In case we're dealing with some older version of nunit
if (Common.TheInstance == null)
{
Common c = new Common();
c.SetUp();
}
Common.TheInstance.DeleteObjectsFolders();
}

View File

@@ -46,6 +46,12 @@ namespace OpenSim.Tests.Permissions
[SetUp]
public void SetUp()
{
// In case we're dealing with some older version of nunit
if (Common.TheInstance == null)
{
Common c = new Common();
c.SetUp();
}
Common.TheInstance.DeleteObjectsFolders();
}