mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 17:05:55 +08:00
Formatting cleanup.
This commit is contained in:
@@ -44,7 +44,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
{
|
||||
[TestFixture, LongRunning]
|
||||
public class EntityManagerTests
|
||||
{
|
||||
{
|
||||
static public Random random;
|
||||
SceneObjectGroup found;
|
||||
Scene scene = SceneSetupHelpers.SetupScene();
|
||||
@@ -81,13 +81,13 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
|
||||
Assert.That(entman.ContainsKey(obj1), Is.False);
|
||||
Assert.That(entman.ContainsKey(li1), Is.False);
|
||||
Assert.That(entman.ContainsKey(obj2), Is.False);
|
||||
Assert.That(entman.ContainsKey(li2), Is.False);
|
||||
Assert.That(entman.ContainsKey(obj2), Is.False);
|
||||
Assert.That(entman.ContainsKey(li2), Is.False);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void T011_ThreadAddRemoveTest()
|
||||
{
|
||||
{
|
||||
TestHelper.InMethod();
|
||||
// Console.WriteLine("Beginning test {0}", MethodBase.GetCurrentMethod());
|
||||
|
||||
@@ -148,12 +148,12 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
int size = random.Next(40,80);
|
||||
char ch ;
|
||||
for (int i=0; i<size; i++)
|
||||
{
|
||||
{
|
||||
ch = Convert.ToChar(Convert.ToInt32(Math.Floor(26 * random.NextDouble() + 65))) ;
|
||||
name.Append(ch);
|
||||
}
|
||||
return name.ToString();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class NewTestThreads
|
||||
@@ -179,4 +179,4 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
entman.Remove(sog.UUID);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,13 +46,13 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
/// </summary>
|
||||
[TestFixture]
|
||||
public class SceneObjectBasicTests
|
||||
{
|
||||
{
|
||||
/// <summary>
|
||||
/// Test adding an object to a scene.
|
||||
/// </summary>
|
||||
[Test, LongRunning]
|
||||
public void TestAddSceneObject()
|
||||
{
|
||||
{
|
||||
TestHelper.InMethod();
|
||||
|
||||
Scene scene = SceneSetupHelpers.SetupScene();
|
||||
@@ -61,7 +61,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
|
||||
//m_log.Debug("retrievedPart : {0}", retrievedPart);
|
||||
// If the parts have the same UUID then we will consider them as one and the same
|
||||
Assert.That(retrievedPart.UUID, Is.EqualTo(part.UUID));
|
||||
Assert.That(retrievedPart.UUID, Is.EqualTo(part.UUID));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -72,11 +72,11 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
{
|
||||
TestHelper.InMethod();
|
||||
|
||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
||||
TestScene scene = SceneSetupHelpers.SetupScene();
|
||||
SceneObjectPart part = SceneSetupHelpers.AddSceneObject(scene);
|
||||
scene.DeleteSceneObject(part.ParentGroup, false);
|
||||
|
||||
SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId);
|
||||
SceneObjectPart retrievedPart = scene.GetSceneObjectPart(part.LocalId);
|
||||
Assert.That(retrievedPart, Is.Null);
|
||||
}
|
||||
|
||||
@@ -115,13 +115,13 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
//[Test]
|
||||
//public void TestDeleteSceneObjectAsyncToUserInventory()
|
||||
//{
|
||||
// TestHelper.InMethod();
|
||||
// //log4net.Config.XmlConfigurator.Configure();
|
||||
// TestHelper.InMethod();
|
||||
// //log4net.Config.XmlConfigurator.Configure();
|
||||
|
||||
// UUID agentId = UUID.Parse("00000000-0000-0000-0000-000000000001");
|
||||
// string myObjectName = "Fred";
|
||||
|
||||
// TestScene scene = SceneSetupHelpers.SetupScene();
|
||||
// TestScene scene = SceneSetupHelpers.SetupScene();
|
||||
// SceneObjectPart part = SceneSetupHelpers.AddSceneObject(scene, myObjectName);
|
||||
|
||||
// Assert.That(
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
/// <summary>
|
||||
/// Linking tests
|
||||
/// </summary>
|
||||
[TestFixture]
|
||||
[TestFixture]
|
||||
public class SceneObjectLinkingTests
|
||||
{
|
||||
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);
|
||||
@@ -174,13 +174,13 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
// Link grp4 to grp3.
|
||||
grp3.LinkToGroup(grp4);
|
||||
|
||||
// At this point we should have 4 parts total in two groups.
|
||||
// At this point we should have 4 parts total in two groups.
|
||||
Assert.That(grp1.Children.Count == 2);
|
||||
Assert.That(grp2.IsDeleted, "Group 2 was not registered as deleted after link.");
|
||||
Assert.That(grp2.Children.Count, Is.EqualTo(0), "Group 2 still contained parts after delink.");
|
||||
Assert.That(grp2.Children.Count, Is.EqualTo(0), "Group 2 still contained parts after delink.");
|
||||
Assert.That(grp3.Children.Count == 2);
|
||||
Assert.That(grp4.IsDeleted, "Group 4 was not registered as deleted after link.");
|
||||
Assert.That(grp4.Children.Count, Is.EqualTo(0), "Group 4 still contained parts after delink.");
|
||||
Assert.That(grp4.Children.Count, Is.EqualTo(0), "Group 4 still contained parts after delink.");
|
||||
|
||||
if (debugtest)
|
||||
{
|
||||
@@ -194,7 +194,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
m_log.Debug("Group3: Pos:"+grp3.AbsolutePosition+", Rot:"+grp3.Rotation);
|
||||
m_log.Debug("Group3: Prim1: OffsetPosition:"+part3.OffsetPosition+", OffsetRotation:"+part3.RotationOffset);
|
||||
m_log.Debug("Group3: Prim2: OffsetPosition:"+part4.OffsetPosition+", OffsetRotation:"+part4.RotationOffset);
|
||||
}
|
||||
}
|
||||
|
||||
// Required for linking
|
||||
grp1.RootPart.UpdateFlag = 0;
|
||||
@@ -253,6 +253,6 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
&& (part4.RotationOffset.Y - compareQuaternion.Y < 0.00003)
|
||||
&& (part4.RotationOffset.Z - compareQuaternion.Z < 0.00003)
|
||||
&& (part4.RotationOffset.W - compareQuaternion.W < 0.00003));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -41,11 +41,11 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
public class SceneTests
|
||||
{
|
||||
private class FakeStorageManager : StorageManager
|
||||
{
|
||||
{
|
||||
private class FakeRegionDataStore : IRegionDataStore
|
||||
{
|
||||
public void Initialise(string filename)
|
||||
{
|
||||
{
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
{
|
||||
/// <summary>
|
||||
/// Teleport tests in a standalone OpenSim
|
||||
/// </summary>
|
||||
/// </summary>
|
||||
[TestFixture]
|
||||
public class StandaloneTeleportTests
|
||||
{
|
||||
@@ -53,7 +53,7 @@ namespace OpenSim.Region.Framework.Scenes.Tests
|
||||
/// </summary>
|
||||
/// Does not yet do what is says on the tin.
|
||||
/// Commenting for now
|
||||
//[Test, LongRunning]
|
||||
//[Test, LongRunning]
|
||||
public void TestSimpleNotNeighboursTeleport()
|
||||
{
|
||||
TestHelper.InMethod();
|
||||
|
||||
Reference in New Issue
Block a user