diff options
author | Justin Clark-Casey (justincc) | 2010-08-10 16:50:36 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2010-08-10 16:50:36 +0100 |
commit | 7203feb83c3fd4ca7af7ec717ca919fc419bcffd (patch) | |
tree | e5ddfe7b672f816fd2f92af0aa0017e3a086c8c4 /OpenSim/Region/Framework/Scenes/Tests/SceneGraphTests.cs | |
parent | extend TestDuplicateObject() to a two prim object (diff) | |
download | opensim-SC-7203feb83c3fd4ca7af7ec717ca919fc419bcffd.zip opensim-SC-7203feb83c3fd4ca7af7ec717ca919fc419bcffd.tar.gz opensim-SC-7203feb83c3fd4ca7af7ec717ca919fc419bcffd.tar.bz2 opensim-SC-7203feb83c3fd4ca7af7ec717ca919fc419bcffd.tar.xz |
Extend DuplicateObject() test to check flags on the duplicated object
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests/SceneGraphTests.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Tests/SceneGraphTests.cs | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Tests/SceneGraphTests.cs b/OpenSim/Region/Framework/Scenes/Tests/SceneGraphTests.cs index bb6e540..d7da9cb 100644 --- a/OpenSim/Region/Framework/Scenes/Tests/SceneGraphTests.cs +++ b/OpenSim/Region/Framework/Scenes/Tests/SceneGraphTests.cs | |||
@@ -65,16 +65,18 @@ namespace OpenSim.Region.Framework.Scenes.Tests | |||
65 | 65 | ||
66 | scene.AddNewSceneObject(so, false); | 66 | scene.AddNewSceneObject(so, false); |
67 | 67 | ||
68 | uint part1LocalId = part1.LocalId; | 68 | SceneObjectGroup dupeSo |
69 | |||
70 | SceneObjectGroup duplicatedSo | ||
71 | = scene.SceneGraph.DuplicateObject( | 69 | = scene.SceneGraph.DuplicateObject( |
72 | part1LocalId, new Vector3(10, 0, 0), 0, ownerId, UUID.Zero, Quaternion.Identity); | 70 | part1.LocalId, new Vector3(10, 0, 0), 0, ownerId, UUID.Zero, Quaternion.Identity); |
71 | Assert.That(dupeSo.Children.Count, Is.EqualTo(2)); | ||
73 | 72 | ||
74 | Assert.That(duplicatedSo.Children.Count, Is.EqualTo(2)); | 73 | SceneObjectPart dupePart1 = dupeSo.GetLinkNumPart(1); |
75 | Assert.That(duplicatedSo.RootPart.LocalId, Is.Not.EqualTo(part1.LocalId)); | 74 | SceneObjectPart dupePart2 = dupeSo.GetLinkNumPart(2); |
75 | Assert.That(dupePart1.LocalId, Is.Not.EqualTo(part1.LocalId)); | ||
76 | Assert.That(dupePart2.LocalId, Is.Not.EqualTo(part2.LocalId)); | ||
76 | 77 | ||
77 | //SceneObjectPart retrievedPart = scene.GetSceneObjectPart(objUuid); | 78 | Assert.That(dupePart1.Flags, Is.EqualTo(part1.Flags)); |
79 | Assert.That(dupePart2.Flags, Is.EqualTo(part2.Flags)); | ||
78 | } | 80 | } |
79 | } | 81 | } |
80 | } \ No newline at end of file | 82 | } \ No newline at end of file |