From cbe1cc1bc8d0da0a4dac3cc644d9df3bc94941da Mon Sep 17 00:00:00 2001
From: Justin Clark-Casey (justincc)
Date: Thu, 12 Nov 2009 17:50:09 +0000
Subject: minor: refactor common setup in uuid gatherer test
---
OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs b/OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs
index 235d7c5..cf2b3b3 100644
--- a/OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs
+++ b/OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs
@@ -38,6 +38,14 @@ namespace OpenSim.Region.Framework.Scenes.Tests
[TestFixture]
public class UuidGathererTests
{
+ protected UuidGatherer m_ug;
+
+ [SetUp]
+ public void Init()
+ {
+ m_ug = new UuidGatherer(new TestAssetService());
+ }
+
///
/// Test requests made for non-existent assets
///
@@ -46,11 +54,10 @@ namespace OpenSim.Region.Framework.Scenes.Tests
{
TestHelper.InMethod();
- UUID missingAssetUuid = UUID.Parse("00000000-0000-0000-0000-000000000666");
- UuidGatherer ug = new UuidGatherer(new TestAssetService());
+ UUID missingAssetUuid = UUID.Parse("00000000-0000-0000-0000-000000000666");
IDictionary foundAssetUuids = new Dictionary();
- ug.GatherAssetUuids(missingAssetUuid, AssetType.Object, foundAssetUuids);
+ m_ug.GatherAssetUuids(missingAssetUuid, AssetType.Object, foundAssetUuids);
// We count the uuid as gathered even if the asset itself is missing.
Assert.That(foundAssetUuids.Count, Is.EqualTo(1));
--
cgit v1.1