From c995d60d37032db3198b8496e186aa7a892dc7a8 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Wed, 14 May 2008 05:11:23 +0000 Subject: Formatting cleanup. --- OpenSim/Tests/Common/DoubleToleranceConstraint.cs | 4 ++-- OpenSim/Tests/Common/VectorToleranceConstraint.cs | 11 +++-------- OpenSim/Tests/Inventory/TestInventory.cs | 7 +++---- 3 files changed, 8 insertions(+), 14 deletions(-) (limited to 'OpenSim/Tests') diff --git a/OpenSim/Tests/Common/DoubleToleranceConstraint.cs b/OpenSim/Tests/Common/DoubleToleranceConstraint.cs index 3363c54..a766549 100644 --- a/OpenSim/Tests/Common/DoubleToleranceConstraint.cs +++ b/OpenSim/Tests/Common/DoubleToleranceConstraint.cs @@ -53,14 +53,14 @@ namespace OpenSim.Tests.Common { throw new ArgumentException("Constraint cannot be used upon null values."); } - if( valueToBeTested.GetType() != typeof(double)) + if (valueToBeTested.GetType() != typeof(double)) { throw new ArgumentException("Constraint cannot be used upon non double-values."); } _valueToBeTested = (double)valueToBeTested; - return IsWithinDoubleConstraint(_valueToBeTested, _baseValue ); + return IsWithinDoubleConstraint(_valueToBeTested, _baseValue); } public override void WriteDescriptionTo(MessageWriter writer) diff --git a/OpenSim/Tests/Common/VectorToleranceConstraint.cs b/OpenSim/Tests/Common/VectorToleranceConstraint.cs index cc96615..2b60db3 100644 --- a/OpenSim/Tests/Common/VectorToleranceConstraint.cs +++ b/OpenSim/Tests/Common/VectorToleranceConstraint.cs @@ -61,14 +61,9 @@ namespace OpenSim.Tests.Common _valueToBeTested = (LLVector3) valueToBeTested; - if ( IsWithinDoubleConstraint(_valueToBeTested.X,_baseValue.X) && - IsWithinDoubleConstraint(_valueToBeTested.Y,_baseValue.Y) && - IsWithinDoubleConstraint(_valueToBeTested.Z,_baseValue.Z) ) - { - return true; - } - - return false; + return (IsWithinDoubleConstraint(_valueToBeTested.X, _baseValue.X) && + IsWithinDoubleConstraint(_valueToBeTested.Y, _baseValue.Y) && + IsWithinDoubleConstraint(_valueToBeTested.Z, _baseValue.Z)); } public override void WriteDescriptionTo(MessageWriter writer) diff --git a/OpenSim/Tests/Inventory/TestInventory.cs b/OpenSim/Tests/Inventory/TestInventory.cs index c1351d9..3083c89 100644 --- a/OpenSim/Tests/Inventory/TestInventory.cs +++ b/OpenSim/Tests/Inventory/TestInventory.cs @@ -147,13 +147,12 @@ namespace OpenSim.Test.Inventory Assert.IsNotNull(folders, "Failed to get rootfolders for user"); bool foundRoot = false; - foreach(InventoryFolderBase f in folders) { - + foreach (InventoryFolderBase f in folders) + { // a root folder has a zero valued LLUUID Assert.AreEqual(f.parentID, LLUUID.Zero, "non root folder returned"); - - if(f.agentID == root.agentID) + if (f.agentID == root.agentID) { // we cannot have two different user specific root folders Assert.IsFalse(foundRoot, "Two different user specific root folders returned"); -- cgit v1.1