Consistenly make NUnit test cases inherit from OpenSimTestCase which automatically turns off any logging enabled between tests

This commit is contained in:
Justin Clark-Casey (justincc)
2012-11-24 03:15:24 +00:00
parent e9be85442f
commit 22d4c52ffc
66 changed files with 83 additions and 68 deletions

View File

@@ -37,7 +37,7 @@ using OpenSim.Tests.Common;
namespace OpenSim.Region.Framework.Scenes.Tests
{
[TestFixture]
public class BorderTests
public class BorderTests : OpenSimTestCase
{
[Test]
public void TestCross()

View File

@@ -41,7 +41,7 @@ using OpenSim.Tests.Common;
namespace OpenSim.Region.Framework.Scenes.Tests
{
[TestFixture, LongRunning]
public class EntityManagerTests
public class EntityManagerTests : OpenSimTestCase
{
static public Random random;
SceneObjectGroup found;

View File

@@ -40,7 +40,7 @@ using OpenSim.Tests.Common.Mock;
namespace OpenSim.Region.Framework.Scenes.Tests
{
[TestFixture]
public class SceneGraphTests
public class SceneGraphTests : OpenSimTestCase
{
[Test]
public void TestDuplicateObject()

View File

@@ -41,7 +41,7 @@ using OpenSim.Tests.Common.Mock;
namespace OpenSim.Region.Framework.Scenes.Tests
{
[TestFixture]
public class SceneManagerTests
public class SceneManagerTests : OpenSimTestCase
{
[Test]
public void TestClose()

View File

@@ -48,7 +48,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
/// TODO: These tests are very incomplete - they only test for a few conditions.
/// </remarks>
[TestFixture]
public class SceneObjectDeRezTests
public class SceneObjectDeRezTests : OpenSimTestCase
{
/// <summary>
/// Test deleting an object from a scene.

View File

@@ -40,7 +40,7 @@ using log4net;
namespace OpenSim.Region.Framework.Scenes.Tests
{
[TestFixture]
public class SceneObjectLinkingTests
public class SceneObjectLinkingTests : OpenSimTestCase
{
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

View File

@@ -41,7 +41,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
/// Basic scene object resize tests
/// </summary>
[TestFixture]
public class SceneObjectResizeTests
public class SceneObjectResizeTests : OpenSimTestCase
{
/// <summary>
/// Test resizing an object

View File

@@ -40,7 +40,7 @@ using OpenSim.Tests.Common.Mock;
namespace OpenSim.Region.Framework.Scenes.Tests
{
[TestFixture]
public class SceneObjectScriptTests
public class SceneObjectScriptTests : OpenSimTestCase
{
[Test]
public void TestAddScript()

View File

@@ -42,7 +42,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
/// Spatial scene object tests (will eventually cover root and child part position, rotation properties, etc.)
/// </summary>
[TestFixture]
public class SceneObjectSpatialTests
public class SceneObjectSpatialTests : OpenSimTestCase
{
TestScene m_scene;
UUID m_ownerId = TestHelpers.ParseTail(0x1);

View File

@@ -42,7 +42,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
/// Basic scene object status tests
/// </summary>
[TestFixture]
public class SceneObjectStatusTests
public class SceneObjectStatusTests : OpenSimTestCase
{
private TestScene m_scene;
private UUID m_ownerId = TestHelpers.ParseTail(0x1);

View File

@@ -51,7 +51,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
/// Scene presence animation tests
/// </summary>
[TestFixture]
public class ScenePresenceAnimationTests
public class ScenePresenceAnimationTests : OpenSimTestCase
{
[Test]
public void TestFlyingAnimation()

View File

@@ -42,7 +42,7 @@ using OpenSim.Tests.Common.Mock;
namespace OpenSim.Region.Framework.Scenes.Tests
{
[TestFixture]
public class ScenePresenceAutopilotTests
public class ScenePresenceAutopilotTests : OpenSimTestCase
{
private TestScene m_scene;

View File

@@ -43,7 +43,7 @@ using System.Threading;
namespace OpenSim.Region.Framework.Scenes.Tests
{
[TestFixture]
public class ScenePresenceSitTests
public class ScenePresenceSitTests : OpenSimTestCase
{
private TestScene m_scene;
private ScenePresence m_sp;

View File

@@ -49,7 +49,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
/// Teleport tests in a standalone OpenSim
/// </summary>
[TestFixture]
public class ScenePresenceTeleportTests
public class ScenePresenceTeleportTests : OpenSimTestCase
{
[TestFixtureSetUp]
public void FixtureInit()

View File

@@ -50,7 +50,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
/// Scene presence tests
/// </summary>
[TestFixture]
public class SceneTests
public class SceneTests : OpenSimTestCase
{
/// <summary>
/// Very basic scene update test. Should become more elaborate with time.

View File

@@ -50,7 +50,7 @@ using OpenSim.Tests.Common.Mock;
namespace OpenSim.Region.Framework.Tests
{
[TestFixture]
public class TaskInventoryTests
public class TaskInventoryTests : OpenSimTestCase
{
[Test]
public void TestAddTaskInventoryItem()

View File

@@ -38,7 +38,7 @@ using OpenSim.Tests.Common.Mock;
namespace OpenSim.Region.Framework.Scenes.Tests
{
[TestFixture]
public class UuidGathererTests
public class UuidGathererTests : OpenSimTestCase
{
protected IAssetService m_assetService;
protected UuidGatherer m_uuidGatherer;