From 8795bb623d3fd84bb3627059230ca0052f6339df Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Thu, 16 Oct 2008 17:46:43 +0000 Subject: [PATCH] - Enforced no user or agent with UUID 0 on agent DB insertion --- OpenSim/Data/Tests/BasicUserTest.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OpenSim/Data/Tests/BasicUserTest.cs b/OpenSim/Data/Tests/BasicUserTest.cs index 0bcc08069c..f9af2e6753 100644 --- a/OpenSim/Data/Tests/BasicUserTest.cs +++ b/OpenSim/Data/Tests/BasicUserTest.cs @@ -222,6 +222,11 @@ namespace OpenSim.Data.Tests UserAgentData a0a = db.GetAgentByUUID(user4); UserAgentData a4a = db.GetAgentByUUID(zero); + Assert.That(zero,Is.EqualTo(a0a.SessionID)); + Assert.That(user4,Is.EqualTo(a0a.ProfileID)); + Assert.That(agent4,Is.EqualTo(a4a.SessionID)); + Assert.That(zero,Is.EqualTo(a4a.ProfileID)); + Assert.That(db.GetAgentByUUID(user4),Is.Null); Assert.That(db.GetAgentByUUID(zero),Is.Null); }