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*.
0.6.6-post-fixes
Mike Mazur 2009-06-12 15:00:08 +00:00
parent 3b4151b042
commit e6e88ac126
2 changed files with 38 additions and 38 deletions

View File

@ -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;

View File

@ -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));