aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Framework/Tests/AssetBaseTest.cs50
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs26
2 files changed, 38 insertions, 38 deletions
diff --git a/OpenSim/Framework/Tests/AssetBaseTest.cs b/OpenSim/Framework/Tests/AssetBaseTest.cs
index dddfd78..3dc6b4e 100644
--- a/OpenSim/Framework/Tests/AssetBaseTest.cs
+++ b/OpenSim/Framework/Tests/AssetBaseTest.cs
@@ -39,33 +39,33 @@ namespace OpenSim.Framework.Tests
39 [Test] 39 [Test]
40 public void TestContainsReferences() 40 public void TestContainsReferences()
41 { 41 {
42 TestContainsReferences(AssetType.Bodypart, true); 42 CheckContainsReferences(AssetType.Bodypart, true);
43 TestContainsReferences(AssetType.Clothing, true); 43 CheckContainsReferences(AssetType.Clothing, true);
44 44
45 TestContainsReferences(AssetType.Animation, false); 45 CheckContainsReferences(AssetType.Animation, false);
46 TestContainsReferences(AssetType.CallingCard, false); 46 CheckContainsReferences(AssetType.CallingCard, false);
47 TestContainsReferences(AssetType.Folder , false); 47 CheckContainsReferences(AssetType.Folder , false);
48 TestContainsReferences(AssetType.Gesture , false); 48 CheckContainsReferences(AssetType.Gesture , false);
49 TestContainsReferences(AssetType.ImageJPEG , false); 49 CheckContainsReferences(AssetType.ImageJPEG , false);
50 TestContainsReferences(AssetType.ImageTGA , false); 50 CheckContainsReferences(AssetType.ImageTGA , false);
51 TestContainsReferences(AssetType.Landmark , false); 51 CheckContainsReferences(AssetType.Landmark , false);
52 TestContainsReferences(AssetType.LostAndFoundFolder, false); 52 CheckContainsReferences(AssetType.LostAndFoundFolder, false);
53 TestContainsReferences(AssetType.LSLBytecode, false); 53 CheckContainsReferences(AssetType.LSLBytecode, false);
54 TestContainsReferences(AssetType.LSLText, false); 54 CheckContainsReferences(AssetType.LSLText, false);
55 TestContainsReferences(AssetType.Notecard, false); 55 CheckContainsReferences(AssetType.Notecard, false);
56 TestContainsReferences(AssetType.Object, false); 56 CheckContainsReferences(AssetType.Object, false);
57 TestContainsReferences(AssetType.RootFolder, false); 57 CheckContainsReferences(AssetType.RootFolder, false);
58 TestContainsReferences(AssetType.Simstate, false); 58 CheckContainsReferences(AssetType.Simstate, false);
59 TestContainsReferences(AssetType.SnapshotFolder, false); 59 CheckContainsReferences(AssetType.SnapshotFolder, false);
60 TestContainsReferences(AssetType.Sound, false); 60 CheckContainsReferences(AssetType.Sound, false);
61 TestContainsReferences(AssetType.SoundWAV, false); 61 CheckContainsReferences(AssetType.SoundWAV, false);
62 TestContainsReferences(AssetType.Texture, false); 62 CheckContainsReferences(AssetType.Texture, false);
63 TestContainsReferences(AssetType.TextureTGA, false); 63 CheckContainsReferences(AssetType.TextureTGA, false);
64 TestContainsReferences(AssetType.TrashFolder, false); 64 CheckContainsReferences(AssetType.TrashFolder, false);
65 TestContainsReferences(AssetType.Unknown, false); 65 CheckContainsReferences(AssetType.Unknown, false);
66 } 66 }
67 67
68 private void TestContainsReferences(AssetType assetType, bool expected) 68 private void CheckContainsReferences(AssetType assetType, bool expected)
69 { 69 {
70 AssetBase asset = new AssetBase(); 70 AssetBase asset = new AssetBase();
71 asset.Type = (sbyte)assetType; 71 asset.Type = (sbyte)assetType;
diff --git a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs
index 47c2df6..f290dd7 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Tests/LSL_ApiTest.cs
@@ -71,24 +71,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
71 [Test] 71 [Test]
72 public void TestllAngleBetween() 72 public void TestllAngleBetween()
73 { 73 {
74 m_testllAngleBetween(new Vector3(1, 0, 0), 0); 74 CheckllAngleBetween(new Vector3(1, 0, 0), 0);
75 m_testllAngleBetween(new Vector3(1, 0, 0), 90); 75 CheckllAngleBetween(new Vector3(1, 0, 0), 90);
76 m_testllAngleBetween(new Vector3(1, 0, 0), 180); 76 CheckllAngleBetween(new Vector3(1, 0, 0), 180);
77 77
78 m_testllAngleBetween(new Vector3(0, 1, 0), 0); 78 CheckllAngleBetween(new Vector3(0, 1, 0), 0);
79 m_testllAngleBetween(new Vector3(0, 1, 0), 90); 79 CheckllAngleBetween(new Vector3(0, 1, 0), 90);
80 m_testllAngleBetween(new Vector3(0, 1, 0), 180); 80 CheckllAngleBetween(new Vector3(0, 1, 0), 180);
81 81
82 m_testllAngleBetween(new Vector3(0, 0, 1), 0); 82 CheckllAngleBetween(new Vector3(0, 0, 1), 0);
83 m_testllAngleBetween(new Vector3(0, 0, 1), 90); 83 CheckllAngleBetween(new Vector3(0, 0, 1), 90);
84 m_testllAngleBetween(new Vector3(0, 0, 1), 180); 84 CheckllAngleBetween(new Vector3(0, 0, 1), 180);
85 85
86 m_testllAngleBetween(new Vector3(1, 1, 1), 0); 86 CheckllAngleBetween(new Vector3(1, 1, 1), 0);
87 m_testllAngleBetween(new Vector3(1, 1, 1), 90); 87 CheckllAngleBetween(new Vector3(1, 1, 1), 90);
88 m_testllAngleBetween(new Vector3(1, 1, 1), 180); 88 CheckllAngleBetween(new Vector3(1, 1, 1), 180);
89 } 89 }
90 90
91 private void m_testllAngleBetween(Vector3 axis,float originalAngle) 91 private void CheckllAngleBetween(Vector3 axis,float originalAngle)
92 { 92 {
93 Quaternion rotation1 = Quaternion.CreateFromAxisAngle(axis, 0); 93 Quaternion rotation1 = Quaternion.CreateFromAxisAngle(axis, 0);
94 Quaternion rotation2 = Quaternion.CreateFromAxisAngle(axis, ToRadians(originalAngle)); 94 Quaternion rotation2 = Quaternion.CreateFromAxisAngle(axis, ToRadians(originalAngle));