diff options
Diffstat (limited to 'OpenSim/Region/Framework')
-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)); |