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
parent
3b4151b042
commit
e6e88ac126
|
@ -39,33 +39,33 @@ namespace OpenSim.Framework.Tests
|
||||||
[Test]
|
[Test]
|
||||||
public void TestContainsReferences()
|
public void TestContainsReferences()
|
||||||
{
|
{
|
||||||
TestContainsReferences(AssetType.Bodypart, true);
|
CheckContainsReferences(AssetType.Bodypart, true);
|
||||||
TestContainsReferences(AssetType.Clothing, true);
|
CheckContainsReferences(AssetType.Clothing, true);
|
||||||
|
|
||||||
TestContainsReferences(AssetType.Animation, false);
|
CheckContainsReferences(AssetType.Animation, false);
|
||||||
TestContainsReferences(AssetType.CallingCard, false);
|
CheckContainsReferences(AssetType.CallingCard, false);
|
||||||
TestContainsReferences(AssetType.Folder , false);
|
CheckContainsReferences(AssetType.Folder , false);
|
||||||
TestContainsReferences(AssetType.Gesture , false);
|
CheckContainsReferences(AssetType.Gesture , false);
|
||||||
TestContainsReferences(AssetType.ImageJPEG , false);
|
CheckContainsReferences(AssetType.ImageJPEG , false);
|
||||||
TestContainsReferences(AssetType.ImageTGA , false);
|
CheckContainsReferences(AssetType.ImageTGA , false);
|
||||||
TestContainsReferences(AssetType.Landmark , false);
|
CheckContainsReferences(AssetType.Landmark , false);
|
||||||
TestContainsReferences(AssetType.LostAndFoundFolder, false);
|
CheckContainsReferences(AssetType.LostAndFoundFolder, false);
|
||||||
TestContainsReferences(AssetType.LSLBytecode, false);
|
CheckContainsReferences(AssetType.LSLBytecode, false);
|
||||||
TestContainsReferences(AssetType.LSLText, false);
|
CheckContainsReferences(AssetType.LSLText, false);
|
||||||
TestContainsReferences(AssetType.Notecard, false);
|
CheckContainsReferences(AssetType.Notecard, false);
|
||||||
TestContainsReferences(AssetType.Object, false);
|
CheckContainsReferences(AssetType.Object, false);
|
||||||
TestContainsReferences(AssetType.RootFolder, false);
|
CheckContainsReferences(AssetType.RootFolder, false);
|
||||||
TestContainsReferences(AssetType.Simstate, false);
|
CheckContainsReferences(AssetType.Simstate, false);
|
||||||
TestContainsReferences(AssetType.SnapshotFolder, false);
|
CheckContainsReferences(AssetType.SnapshotFolder, false);
|
||||||
TestContainsReferences(AssetType.Sound, false);
|
CheckContainsReferences(AssetType.Sound, false);
|
||||||
TestContainsReferences(AssetType.SoundWAV, false);
|
CheckContainsReferences(AssetType.SoundWAV, false);
|
||||||
TestContainsReferences(AssetType.Texture, false);
|
CheckContainsReferences(AssetType.Texture, false);
|
||||||
TestContainsReferences(AssetType.TextureTGA, false);
|
CheckContainsReferences(AssetType.TextureTGA, false);
|
||||||
TestContainsReferences(AssetType.TrashFolder, false);
|
CheckContainsReferences(AssetType.TrashFolder, false);
|
||||||
TestContainsReferences(AssetType.Unknown, false);
|
CheckContainsReferences(AssetType.Unknown, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void TestContainsReferences(AssetType assetType, bool expected)
|
private void CheckContainsReferences(AssetType assetType, bool expected)
|
||||||
{
|
{
|
||||||
AssetBase asset = new AssetBase();
|
AssetBase asset = new AssetBase();
|
||||||
asset.Type = (sbyte)assetType;
|
asset.Type = (sbyte)assetType;
|
||||||
|
|
|
@ -71,24 +71,24 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
|
||||||
[Test]
|
[Test]
|
||||||
public void TestllAngleBetween()
|
public void TestllAngleBetween()
|
||||||
{
|
{
|
||||||
m_testllAngleBetween(new Vector3(1, 0, 0), 0);
|
CheckllAngleBetween(new Vector3(1, 0, 0), 0);
|
||||||
m_testllAngleBetween(new Vector3(1, 0, 0), 90);
|
CheckllAngleBetween(new Vector3(1, 0, 0), 90);
|
||||||
m_testllAngleBetween(new Vector3(1, 0, 0), 180);
|
CheckllAngleBetween(new Vector3(1, 0, 0), 180);
|
||||||
|
|
||||||
m_testllAngleBetween(new Vector3(0, 1, 0), 0);
|
CheckllAngleBetween(new Vector3(0, 1, 0), 0);
|
||||||
m_testllAngleBetween(new Vector3(0, 1, 0), 90);
|
CheckllAngleBetween(new Vector3(0, 1, 0), 90);
|
||||||
m_testllAngleBetween(new Vector3(0, 1, 0), 180);
|
CheckllAngleBetween(new Vector3(0, 1, 0), 180);
|
||||||
|
|
||||||
m_testllAngleBetween(new Vector3(0, 0, 1), 0);
|
CheckllAngleBetween(new Vector3(0, 0, 1), 0);
|
||||||
m_testllAngleBetween(new Vector3(0, 0, 1), 90);
|
CheckllAngleBetween(new Vector3(0, 0, 1), 90);
|
||||||
m_testllAngleBetween(new Vector3(0, 0, 1), 180);
|
CheckllAngleBetween(new Vector3(0, 0, 1), 180);
|
||||||
|
|
||||||
m_testllAngleBetween(new Vector3(1, 1, 1), 0);
|
CheckllAngleBetween(new Vector3(1, 1, 1), 0);
|
||||||
m_testllAngleBetween(new Vector3(1, 1, 1), 90);
|
CheckllAngleBetween(new Vector3(1, 1, 1), 90);
|
||||||
m_testllAngleBetween(new Vector3(1, 1, 1), 180);
|
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 rotation1 = Quaternion.CreateFromAxisAngle(axis, 0);
|
||||||
Quaternion rotation2 = Quaternion.CreateFromAxisAngle(axis, ToRadians(originalAngle));
|
Quaternion rotation2 = Quaternion.CreateFromAxisAngle(axis, ToRadians(originalAngle));
|
||||||
|
|
Loading…
Reference in New Issue