aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Tests/AssetBaseTest.cs
diff options
context:
space:
mode:
authorJeff Ames2009-04-14 10:00:13 +0000
committerJeff Ames2009-04-14 10:00:13 +0000
commitfa29cf5c5010f7c3e83494786be1b0c11c663e6d (patch)
tree51d4cc4d2e82d2a53bb1ca23ef10b3dd63060f0d /OpenSim/Framework/Tests/AssetBaseTest.cs
parent* Adding some organization of vehicle type stuff in the ODEPlugin. (diff)
downloadopensim-SC_OLD-fa29cf5c5010f7c3e83494786be1b0c11c663e6d.zip
opensim-SC_OLD-fa29cf5c5010f7c3e83494786be1b0c11c663e6d.tar.gz
opensim-SC_OLD-fa29cf5c5010f7c3e83494786be1b0c11c663e6d.tar.bz2
opensim-SC_OLD-fa29cf5c5010f7c3e83494786be1b0c11c663e6d.tar.xz
Update svn properties.
Diffstat (limited to 'OpenSim/Framework/Tests/AssetBaseTest.cs')
-rw-r--r--OpenSim/Framework/Tests/AssetBaseTest.cs98
1 files changed, 49 insertions, 49 deletions
diff --git a/OpenSim/Framework/Tests/AssetBaseTest.cs b/OpenSim/Framework/Tests/AssetBaseTest.cs
index 800b41b..f5f15dc 100644
--- a/OpenSim/Framework/Tests/AssetBaseTest.cs
+++ b/OpenSim/Framework/Tests/AssetBaseTest.cs
@@ -1,49 +1,49 @@
1using System; 1using System;
2using System.Collections.Generic; 2using System.Collections.Generic;
3using System.Text; 3using System.Text;
4using NUnit.Framework; 4using NUnit.Framework;
5using OpenMetaverse; 5using OpenMetaverse;
6 6
7namespace OpenSim.Framework.Tests 7namespace OpenSim.Framework.Tests
8{ 8{
9 [TestFixture] 9 [TestFixture]
10 public class AssetBaseTest 10 public class AssetBaseTest
11 { 11 {
12 [Test] 12 [Test]
13 public void TestContainsReferences() 13 public void TestContainsReferences()
14 { 14 {
15 TestContainsReferences(AssetType.Bodypart, true); 15 TestContainsReferences(AssetType.Bodypart, true);
16 TestContainsReferences(AssetType.Clothing, true); 16 TestContainsReferences(AssetType.Clothing, true);
17 17
18 TestContainsReferences(AssetType.Animation, false); 18 TestContainsReferences(AssetType.Animation, false);
19 TestContainsReferences(AssetType.CallingCard, false); 19 TestContainsReferences(AssetType.CallingCard, false);
20 TestContainsReferences(AssetType.Folder , false); 20 TestContainsReferences(AssetType.Folder , false);
21 TestContainsReferences(AssetType.Gesture , false); 21 TestContainsReferences(AssetType.Gesture , false);
22 TestContainsReferences(AssetType.ImageJPEG , false); 22 TestContainsReferences(AssetType.ImageJPEG , false);
23 TestContainsReferences(AssetType.ImageTGA , false); 23 TestContainsReferences(AssetType.ImageTGA , false);
24 TestContainsReferences(AssetType.Landmark , false); 24 TestContainsReferences(AssetType.Landmark , false);
25 TestContainsReferences(AssetType.LostAndFoundFolder, false); 25 TestContainsReferences(AssetType.LostAndFoundFolder, false);
26 TestContainsReferences(AssetType.LSLBytecode, false); 26 TestContainsReferences(AssetType.LSLBytecode, false);
27 TestContainsReferences(AssetType.LSLText, false); 27 TestContainsReferences(AssetType.LSLText, false);
28 TestContainsReferences(AssetType.Notecard, false); 28 TestContainsReferences(AssetType.Notecard, false);
29 TestContainsReferences(AssetType.Object, false); 29 TestContainsReferences(AssetType.Object, false);
30 TestContainsReferences(AssetType.RootFolder, false); 30 TestContainsReferences(AssetType.RootFolder, false);
31 TestContainsReferences(AssetType.Simstate, false); 31 TestContainsReferences(AssetType.Simstate, false);
32 TestContainsReferences(AssetType.SnapshotFolder, false); 32 TestContainsReferences(AssetType.SnapshotFolder, false);
33 TestContainsReferences(AssetType.Sound, false); 33 TestContainsReferences(AssetType.Sound, false);
34 TestContainsReferences(AssetType.SoundWAV, false); 34 TestContainsReferences(AssetType.SoundWAV, false);
35 TestContainsReferences(AssetType.Texture, false); 35 TestContainsReferences(AssetType.Texture, false);
36 TestContainsReferences(AssetType.TextureTGA, false); 36 TestContainsReferences(AssetType.TextureTGA, false);
37 TestContainsReferences(AssetType.TrashFolder, false); 37 TestContainsReferences(AssetType.TrashFolder, false);
38 TestContainsReferences(AssetType.Unknown, false); 38 TestContainsReferences(AssetType.Unknown, false);
39 } 39 }
40 40
41 private void TestContainsReferences(AssetType assetType, bool expected) 41 private void TestContainsReferences(AssetType assetType, bool expected)
42 { 42 {
43 AssetBase asset = new AssetBase(); 43 AssetBase asset = new AssetBase();
44 asset.Type = (sbyte)assetType; 44 asset.Type = (sbyte)assetType;
45 bool actual = asset.ContainsReferences; 45 bool actual = asset.ContainsReferences;
46 Assert.AreEqual(expected, actual, "Expected "+assetType+".ContainsReferences to be "+expected+" but was "+actual+"."); 46 Assert.AreEqual(expected, actual, "Expected "+assetType+".ContainsReferences to be "+expected+" but was "+actual+".");
47 } 47 }
48 } 48 }
49} 49}