aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2009-11-12 17:50:09 +0000
committerJustin Clark-Casey (justincc)2009-11-12 17:50:09 +0000
commitcbe1cc1bc8d0da0a4dac3cc644d9df3bc94941da (patch)
tree793e3b2fe67682964d52d81ac29551b1e4a74e84 /OpenSim/Region
parentminor: remove mono compiler warning (diff)
downloadopensim-SC_OLD-cbe1cc1bc8d0da0a4dac3cc644d9df3bc94941da.zip
opensim-SC_OLD-cbe1cc1bc8d0da0a4dac3cc644d9df3bc94941da.tar.gz
opensim-SC_OLD-cbe1cc1bc8d0da0a4dac3cc644d9df3bc94941da.tar.bz2
opensim-SC_OLD-cbe1cc1bc8d0da0a4dac3cc644d9df3bc94941da.tar.xz
minor: refactor common setup in uuid gatherer test
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs13
1 files 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
38 [TestFixture] 38 [TestFixture]
39 public class UuidGathererTests 39 public class UuidGathererTests
40 { 40 {
41 protected UuidGatherer m_ug;
42
43 [SetUp]
44 public void Init()
45 {
46 m_ug = new UuidGatherer(new TestAssetService());
47 }
48
41 /// <summary> 49 /// <summary>
42 /// Test requests made for non-existent assets 50 /// Test requests made for non-existent assets
43 /// </summary> 51 /// </summary>
@@ -46,11 +54,10 @@ namespace OpenSim.Region.Framework.Scenes.Tests
46 { 54 {
47 TestHelper.InMethod(); 55 TestHelper.InMethod();
48 56
49 UUID missingAssetUuid = UUID.Parse("00000000-0000-0000-0000-000000000666"); 57 UUID missingAssetUuid = UUID.Parse("00000000-0000-0000-0000-000000000666");
50 UuidGatherer ug = new UuidGatherer(new TestAssetService());
51 IDictionary<UUID, int> foundAssetUuids = new Dictionary<UUID, int>(); 58 IDictionary<UUID, int> foundAssetUuids = new Dictionary<UUID, int>();
52 59
53 ug.GatherAssetUuids(missingAssetUuid, AssetType.Object, foundAssetUuids); 60 m_ug.GatherAssetUuids(missingAssetUuid, AssetType.Object, foundAssetUuids);
54 61
55 // We count the uuid as gathered even if the asset itself is missing. 62 // We count the uuid as gathered even if the asset itself is missing.
56 Assert.That(foundAssetUuids.Count, Is.EqualTo(1)); 63 Assert.That(foundAssetUuids.Count, Is.EqualTo(1));