diff options
author | Justin Clark-Casey (justincc) | 2009-11-12 17:50:09 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2009-11-12 17:50:09 +0000 |
commit | cbe1cc1bc8d0da0a4dac3cc644d9df3bc94941da (patch) | |
tree | 793e3b2fe67682964d52d81ac29551b1e4a74e84 /OpenSim/Region | |
parent | minor: remove mono compiler warning (diff) | |
download | opensim-SC-cbe1cc1bc8d0da0a4dac3cc644d9df3bc94941da.zip opensim-SC-cbe1cc1bc8d0da0a4dac3cc644d9df3bc94941da.tar.gz opensim-SC-cbe1cc1bc8d0da0a4dac3cc644d9df3bc94941da.tar.bz2 opensim-SC-cbe1cc1bc8d0da0a4dac3cc644d9df3bc94941da.tar.xz |
minor: refactor common setup in uuid gatherer test
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/UuidGathererTests.cs | 13 |
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)); |