mirror of
https://github.com/opensim/opensim.git
synced 2026-08-12 12:25:42 +08:00
More EntityTransferContext plumbing
This commit is contained in:
@@ -116,7 +116,8 @@ namespace OpenSim.Framework.Tests
|
||||
position2 = new AgentPosition();
|
||||
|
||||
Assert.IsFalse(position2.AgentID == position1.AgentID, "Test Error, position2 should be a blank uninitialized AgentPosition");
|
||||
position2.Unpack(position1.Pack(), null);
|
||||
EntityTransferContext ctx = new EntityTransferContext();
|
||||
position2.Unpack(position1.Pack(ctx), null, ctx);
|
||||
|
||||
Assert.IsTrue(position2.AgentID == position1.AgentID, "Agent ID didn't unpack the same way it packed");
|
||||
Assert.IsTrue(position2.Position == position1.Position, "Position didn't unpack the same way it packed");
|
||||
@@ -305,4 +306,4 @@ namespace OpenSim.Framework.Tests
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user