From e6e88ac12611c40f10a0cfbd3acf576566f5019a Mon Sep 17 00:00:00 2001 From: Mike Mazur Date: Fri, 12 Jun 2009 15:00:08 +0000 Subject: [PATCH] Give m_test* methods more reasonable names Changing the names of these methods because they were being picked up by nunit as tests even though they were marked private. Naming them Check* after the original Test*. --- OpenSim/Framework/Tests/AssetBaseTest.cs | 50 +++++++++---------- .../ScriptEngine/Shared/Tests/LSL_ApiTest.cs | 26 +++++----- 2 files changed, 38 insertions(+), 38 deletions(-) diff --git a/OpenSim/Framework/Tests/AssetBaseTest.cs b/OpenSim/Framework/Tests/AssetBaseTest.cs index dddfd78844..3dc6b4ee4f 100644 --- a/OpenSim/Framework/Tests/AssetBaseTest.cs +++ b/OpenSim/Framework/Tests/AssetBaseTest.cs @@ -39,33 +39,33 @@ namespace OpenSim.Framework.Tests [Test] public void TestContainsReferences() { - TestContainsReferences(AssetType.Bodypart, true); - TestContainsReferences(AssetType.Clothing, true); - - TestContainsReferences(AssetType.Animation, false); - TestContainsReferences(AssetType.CallingCard, false); - TestContainsReferences(AssetType.Folder , false); - TestContainsReferences(AssetType.Gesture , false); - TestContainsReferences(AssetType.ImageJPEG , false); - TestContainsReferences(AssetType.ImageTGA , false); - TestContainsReferences(AssetType.Landmark , false); - TestContainsReferences(AssetType.LostAndFoundFolder, false); - TestContainsReferences(AssetType.LSLBytecode, false); - TestContainsReferences(AssetType.LSLText, false); - TestContainsReferences(AssetType.Notecard, false); - TestContainsReferences(AssetType.Object, false); - TestContainsReferences(AssetType.RootFolder, false); - TestContainsReferences(AssetType.Simstate, false); - TestContainsReferences(AssetType.SnapshotFolder, false); - TestContainsReferences(AssetType.Sound, false); - TestContainsReferences(AssetType.SoundWAV, false); - TestContainsReferences(AssetType.Texture, false); - TestContainsReferences(AssetType.TextureTGA, false); - TestContainsReferences(AssetType.TrashFolder, false); - TestContainsReferences(AssetType.Unknown, false); + CheckContainsReferences(AssetType.Bodypart, true); + CheckContainsReferences(AssetType.Clothing, true); + + CheckContainsReferences(AssetType.Animation, false); + CheckContainsReferences(AssetType.CallingCard, false); + CheckContainsReferences(AssetType.Folder , false); + CheckContainsReferences(AssetType.Gesture , false); + CheckContainsReferences(AssetType.ImageJPEG , false); + CheckContainsReferences(AssetType.ImageTGA , false); + CheckContainsReferences(AssetType.Landmark , false); + CheckContainsReferences(AssetType.LostAndFoundFolder, false); + CheckContainsReferences(AssetType.LSLBytecode, false); + CheckContainsReferences(AssetType.LSLText, false); + CheckContainsReferences(AssetType.Notecard, false); + CheckContainsReferences(AssetType.Object, false); + CheckContainsReferences(AssetType.RootFolder, false); + CheckContainsReferences(AssetType.Simstate, false); + CheckContainsReferences(AssetType.SnapshotFolder, false); + CheckContainsReferences(AssetType.Sound, false); + CheckContainsReferences(AssetType.SoundWAV, false); + CheckContainsReferences(AssetType.Texture, false); + CheckContainsReferences(AssetType.TextureTGA, false); + CheckContainsReferences(AssetType.TrashFolder, false); + CheckContainsReferences(AssetType.Unknown, false); } - private void TestContainsReferences(AssetType assetType, bool expected) + private void CheckContainsReferences(AssetType assetType, bool expected) { AssetBase asset = new AssetBase(); 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 47c2df633b..f290dd7a83 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 [Test] public void TestllAngleBetween() { - m_testllAngleBetween(new Vector3(1, 0, 0), 0); - m_testllAngleBetween(new Vector3(1, 0, 0), 90); - m_testllAngleBetween(new Vector3(1, 0, 0), 180); + CheckllAngleBetween(new Vector3(1, 0, 0), 0); + CheckllAngleBetween(new Vector3(1, 0, 0), 90); + CheckllAngleBetween(new Vector3(1, 0, 0), 180); - m_testllAngleBetween(new Vector3(0, 1, 0), 0); - m_testllAngleBetween(new Vector3(0, 1, 0), 90); - m_testllAngleBetween(new Vector3(0, 1, 0), 180); + CheckllAngleBetween(new Vector3(0, 1, 0), 0); + CheckllAngleBetween(new Vector3(0, 1, 0), 90); + CheckllAngleBetween(new Vector3(0, 1, 0), 180); - m_testllAngleBetween(new Vector3(0, 0, 1), 0); - m_testllAngleBetween(new Vector3(0, 0, 1), 90); - m_testllAngleBetween(new Vector3(0, 0, 1), 180); + CheckllAngleBetween(new Vector3(0, 0, 1), 0); + CheckllAngleBetween(new Vector3(0, 0, 1), 90); + CheckllAngleBetween(new Vector3(0, 0, 1), 180); - m_testllAngleBetween(new Vector3(1, 1, 1), 0); - m_testllAngleBetween(new Vector3(1, 1, 1), 90); - m_testllAngleBetween(new Vector3(1, 1, 1), 180); + CheckllAngleBetween(new Vector3(1, 1, 1), 0); + CheckllAngleBetween(new Vector3(1, 1, 1), 90); + CheckllAngleBetween(new Vector3(1, 1, 1), 180); } - private void m_testllAngleBetween(Vector3 axis,float originalAngle) + private void CheckllAngleBetween(Vector3 axis,float originalAngle) { Quaternion rotation1 = Quaternion.CreateFromAxisAngle(axis, 0); Quaternion rotation2 = Quaternion.CreateFromAxisAngle(axis, ToRadians(originalAngle));