minor: indentation corrections

0.6.0-stable
Justin Clarke Casey 2008-10-29 20:05:16 +00:00
parent f8c2efbe70
commit 8367353ea3
1 changed files with 45 additions and 45 deletions

View File

@ -85,17 +85,17 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
public void TestConcatenateDouble() public void TestConcatenateDouble()
{ {
LSL_Types.list testList = new LSL_Types.list(new LSL_Types.LSLInteger(1), new LSL_Types.LSLInteger('a'), new LSL_Types.LSLString("test")); LSL_Types.list testList = new LSL_Types.list(new LSL_Types.LSLInteger(1), new LSL_Types.LSLInteger('a'), new LSL_Types.LSLString("test"));
testList += new LSL_Types.LSLFloat(2.0f); testList += new LSL_Types.LSLFloat(2.0f);
Assert.AreEqual(4, testList.Length); Assert.AreEqual(4, testList.Length);
Assert.AreEqual(new LSL_Types.LSLFloat(2.0f), testList.Data[3]); Assert.AreEqual(new LSL_Types.LSLFloat(2.0f), testList.Data[3]);
Assert.AreEqual(typeof(LSL_Types.LSLFloat), testList.Data[3].GetType()); Assert.AreEqual(typeof(LSL_Types.LSLFloat), testList.Data[3].GetType());
LSL_Types.list secondTestList = testList + new LSL_Types.LSLFloat(0.04f); LSL_Types.list secondTestList = testList + new LSL_Types.LSLFloat(0.04f);
Assert.AreEqual(5, secondTestList.Length); Assert.AreEqual(5, secondTestList.Length);
Assert.AreEqual(new LSL_Types.LSLFloat(0.04f), secondTestList.Data[4]); Assert.AreEqual(new LSL_Types.LSLFloat(0.04f), secondTestList.Data[4]);
Assert.AreEqual(typeof(LSL_Types.LSLFloat), secondTestList.Data[4].GetType()); Assert.AreEqual(typeof(LSL_Types.LSLFloat), secondTestList.Data[4].GetType());
} }
/// <summary> /// <summary>
@ -104,10 +104,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
[Test] [Test]
public void TestCastLSLIntegerItemToLSLInteger() public void TestCastLSLIntegerItemToLSLInteger()
{ {
LSL_Types.LSLInteger testValue = new LSL_Types.LSLInteger(123); LSL_Types.LSLInteger testValue = new LSL_Types.LSLInteger(123);
LSL_Types.list testList = new LSL_Types.list(testValue); LSL_Types.list testList = new LSL_Types.list(testValue);
Assert.AreEqual(testValue, (LSL_Types.LSLInteger)testList.Data[0]); Assert.AreEqual(testValue, (LSL_Types.LSLInteger)testList.Data[0]);
} }
/// <summary> /// <summary>
@ -116,10 +116,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
[Test] [Test]
public void TestCastLSLFloatItemToLSLFloat() public void TestCastLSLFloatItemToLSLFloat()
{ {
LSL_Types.LSLFloat testValue = new LSL_Types.LSLFloat(123.45678987); LSL_Types.LSLFloat testValue = new LSL_Types.LSLFloat(123.45678987);
LSL_Types.list testList = new LSL_Types.list(testValue); LSL_Types.list testList = new LSL_Types.list(testValue);
Assert.AreEqual(testValue, (LSL_Types.LSLFloat)testList.Data[0]); Assert.AreEqual(testValue, (LSL_Types.LSLFloat)testList.Data[0]);
} }
/// <summary> /// <summary>
@ -128,10 +128,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
[Test] [Test]
public void TestCastLSLStringItemToLSLString() public void TestCastLSLStringItemToLSLString()
{ {
LSL_Types.LSLString testValue = new LSL_Types.LSLString("hello there"); LSL_Types.LSLString testValue = new LSL_Types.LSLString("hello there");
LSL_Types.list testList = new LSL_Types.list(testValue); LSL_Types.list testList = new LSL_Types.list(testValue);
Assert.AreEqual(testValue, (LSL_Types.LSLString)testList.Data[0]); Assert.AreEqual(testValue, (LSL_Types.LSLString)testList.Data[0]);
} }
/// <summary> /// <summary>
@ -140,10 +140,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
[Test] [Test]
public void TestCastVector3ItemToVector3() public void TestCastVector3ItemToVector3()
{ {
LSL_Types.Vector3 testValue = new LSL_Types.Vector3(12.34, 56.987654, 0.00987); LSL_Types.Vector3 testValue = new LSL_Types.Vector3(12.34, 56.987654, 0.00987);
LSL_Types.list testList = new LSL_Types.list(testValue); LSL_Types.list testList = new LSL_Types.list(testValue);
Assert.AreEqual(testValue, (LSL_Types.Vector3)testList.Data[0]); Assert.AreEqual(testValue, (LSL_Types.Vector3)testList.Data[0]);
} }
/// <summary> /// <summary>
/// Tests casting Quaternion item to Quaternion. /// Tests casting Quaternion item to Quaternion.
@ -151,10 +151,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
[Test] [Test]
public void TestCastQuaternionItemToQuaternion() public void TestCastQuaternionItemToQuaternion()
{ {
LSL_Types.Quaternion testValue = new LSL_Types.Quaternion(12.34, 56.44323, 765.983421, 0.00987); LSL_Types.Quaternion testValue = new LSL_Types.Quaternion(12.34, 56.44323, 765.983421, 0.00987);
LSL_Types.list testList = new LSL_Types.list(testValue); LSL_Types.list testList = new LSL_Types.list(testValue);
Assert.AreEqual(testValue, (LSL_Types.Quaternion)testList.Data[0]); Assert.AreEqual(testValue, (LSL_Types.Quaternion)testList.Data[0]);
} }
//==================================================================================== //====================================================================================
@ -165,10 +165,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
[Test] [Test]
public void TestGetLSLIntegerItemForLSLIntegerItem() public void TestGetLSLIntegerItemForLSLIntegerItem()
{ {
LSL_Types.LSLInteger testValue = new LSL_Types.LSLInteger(999911); LSL_Types.LSLInteger testValue = new LSL_Types.LSLInteger(999911);
LSL_Types.list testList = new LSL_Types.list(testValue); LSL_Types.list testList = new LSL_Types.list(testValue);
Assert.AreEqual(testValue, testList.GetLSLIntegerItem(0)); Assert.AreEqual(testValue, testList.GetLSLIntegerItem(0));
} }
/// <summary> /// <summary>
@ -177,10 +177,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
[Test] [Test]
public void TestGetLSLFloatItemForLSLFloatItem() public void TestGetLSLFloatItemForLSLFloatItem()
{ {
LSL_Types.LSLFloat testValue = new LSL_Types.LSLFloat(321.45687876); LSL_Types.LSLFloat testValue = new LSL_Types.LSLFloat(321.45687876);
LSL_Types.list testList = new LSL_Types.list(testValue); LSL_Types.list testList = new LSL_Types.list(testValue);
Assert.AreEqual(testValue, testList.GetLSLFloatItem(0)); Assert.AreEqual(testValue, testList.GetLSLFloatItem(0));
} }
/// <summary> /// <summary>
@ -202,10 +202,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
[Test] [Test]
public void TestGetLSLStringItemForLSLStringItem() public void TestGetLSLStringItemForLSLStringItem()
{ {
LSL_Types.LSLString testValue = new LSL_Types.LSLString("hello all"); LSL_Types.LSLString testValue = new LSL_Types.LSLString("hello all");
LSL_Types.list testList = new LSL_Types.list(testValue); LSL_Types.list testList = new LSL_Types.list(testValue);
Assert.AreEqual(testValue, testList.GetLSLStringItem(0)); Assert.AreEqual(testValue, testList.GetLSLStringItem(0));
} }
/// <summary> /// <summary>
@ -214,12 +214,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
[Test] [Test]
public void TestGetLSLStringItemForKeyItem() public void TestGetLSLStringItemForKeyItem()
{ {
LSL_Types.key testValue LSL_Types.key testValue
= new LSL_Types.key("98000000-0000-2222-3333-100000001000"); = new LSL_Types.key("98000000-0000-2222-3333-100000001000");
LSL_Types.LSLString testStringValue = new LSL_Types.LSLString(testValue); LSL_Types.LSLString testStringValue = new LSL_Types.LSLString(testValue);
LSL_Types.list testList = new LSL_Types.list(testValue); LSL_Types.list testList = new LSL_Types.list(testValue);
Assert.AreEqual(testStringValue, testList.GetLSLStringItem(0)); Assert.AreEqual(testStringValue, testList.GetLSLStringItem(0));
} }
/// <summary> /// <summary>
@ -228,10 +228,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
[Test] [Test]
public void TestGetVector3ItemForVector3Item() public void TestGetVector3ItemForVector3Item()
{ {
LSL_Types.Vector3 testValue = new LSL_Types.Vector3(92.34, 58.98754, -0.10987); LSL_Types.Vector3 testValue = new LSL_Types.Vector3(92.34, 58.98754, -0.10987);
LSL_Types.list testList = new LSL_Types.list(testValue); LSL_Types.list testList = new LSL_Types.list(testValue);
Assert.AreEqual(testValue, testList.GetVector3Item(0)); Assert.AreEqual(testValue, testList.GetVector3Item(0));
} }
/// <summary> /// <summary>
/// Tests GetQuaternionItem for Quaternion item. /// Tests GetQuaternionItem for Quaternion item.
@ -239,10 +239,10 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
[Test] [Test]
public void TestGetQuaternionItemForQuaternionItem() public void TestGetQuaternionItemForQuaternionItem()
{ {
LSL_Types.Quaternion testValue = new LSL_Types.Quaternion(12.64, 59.43723, 765.3421, 4.00987); LSL_Types.Quaternion testValue = new LSL_Types.Quaternion(12.64, 59.43723, 765.3421, 4.00987);
LSL_Types.list testList = new LSL_Types.list(testValue); LSL_Types.list testList = new LSL_Types.list(testValue);
Assert.AreEqual(testValue, testList.GetQuaternionItem(0)); Assert.AreEqual(testValue, testList.GetQuaternionItem(0));
} }
/// <summary> /// <summary>
@ -251,11 +251,11 @@ namespace OpenSim.Region.ScriptEngine.Shared.Tests
[Test] [Test]
public void TestGetKeyItemForKeyItem() public void TestGetKeyItemForKeyItem()
{ {
LSL_Types.key testValue LSL_Types.key testValue
= new LSL_Types.key("00000000-0000-2222-3333-100000001012"); = new LSL_Types.key("00000000-0000-2222-3333-100000001012");
LSL_Types.list testList = new LSL_Types.list(testValue); LSL_Types.list testList = new LSL_Types.list(testValue);
Assert.AreEqual(testValue, testList.GetKeyItem(0)); Assert.AreEqual(testValue, testList.GetKeyItem(0));
} }
} }
} }