29 using System.Collections.Generic;
31 using NUnit.Framework;
33 using OpenSim.Tests.Common;
35 namespace OpenSim.Framework.Tests
43 CheckContainsReferences(AssetType.Bodypart,
true);
44 CheckContainsReferences(AssetType.Clothing,
true);
46 CheckContainsReferences(AssetType.Animation,
false);
47 CheckContainsReferences(AssetType.CallingCard,
false);
48 CheckContainsReferences(AssetType.Folder ,
false);
49 CheckContainsReferences(AssetType.Gesture ,
false);
50 CheckContainsReferences(AssetType.ImageJPEG ,
false);
51 CheckContainsReferences(AssetType.ImageTGA ,
false);
52 CheckContainsReferences(AssetType.Landmark ,
false);
53 CheckContainsReferences(AssetType.LSLBytecode,
false);
54 CheckContainsReferences(AssetType.LSLText,
false);
55 CheckContainsReferences(AssetType.Notecard,
false);
56 CheckContainsReferences(AssetType.Object,
false);
57 CheckContainsReferences(AssetType.Simstate,
false);
58 CheckContainsReferences(AssetType.Sound,
false);
59 CheckContainsReferences(AssetType.SoundWAV,
false);
60 CheckContainsReferences(AssetType.Texture,
false);
61 CheckContainsReferences(AssetType.TextureTGA,
false);
62 CheckContainsReferences(AssetType.Unknown,
false);
65 private void CheckContainsReferences(AssetType assetType,
bool expected)
67 AssetBase asset =
new AssetBase(UUID.Zero, String.Empty, (sbyte)assetType, UUID.Zero.ToString());
68 bool actual = asset.ContainsReferences;
69 Assert.AreEqual(expected, actual,
"Expected "+assetType+
".ContainsReferences to be "+expected+
" but was "+actual+
".");
Asset class. All Assets are reference by this class or a class derived from this class ...
void TestContainsReferences()