From ee205e7e812e170f670e690a4e0fa9caa652f226 Mon Sep 17 00:00:00 2001 From: Jeff Ames Date: Thu, 1 Oct 2009 01:00:09 +0900 Subject: Formatting cleanup. --- OpenSim/Data/MSSQL/MSSQLAssetData.cs | 4 +-- OpenSim/Data/MSSQL/MSSQLInventoryData.cs | 4 +-- OpenSim/Data/MSSQL/MSSQLRegionData.cs | 2 +- OpenSim/Data/MSSQL/MSSQLUserAccountData.cs | 2 +- OpenSim/Data/MSSQL/MSSQLUserData.cs | 4 +-- OpenSim/Data/MySQL/MySQLAssetData.cs | 2 +- OpenSim/Data/MySQL/MySQLInventoryData.cs | 12 ++++----- OpenSim/Data/MySQL/MySQLLegacyRegionData.cs | 4 +-- OpenSim/Data/MySQL/MySQLUserData.cs | 4 +-- OpenSim/Data/NHibernate/NHibernateManager.cs | 2 +- OpenSim/Data/NHibernate/NHibernateUserData.cs | 6 ++--- OpenSim/Data/RegionProfileData.cs | 2 +- OpenSim/Data/SQLite/SQLiteRegionData.cs | 2 +- OpenSim/Data/Tests/BasicRegionTest.cs | 36 +++++++++++++-------------- OpenSim/Data/Tests/BasicUserTest.cs | 22 ++++++++-------- OpenSim/Data/UserDataBase.cs | 2 +- 16 files changed, 55 insertions(+), 55 deletions(-) (limited to 'OpenSim/Data') diff --git a/OpenSim/Data/MSSQL/MSSQLAssetData.cs b/OpenSim/Data/MSSQL/MSSQLAssetData.cs index d193cf5..25f7cf0 100644 --- a/OpenSim/Data/MSSQL/MSSQLAssetData.cs +++ b/OpenSim/Data/MSSQL/MSSQLAssetData.cs @@ -175,7 +175,7 @@ namespace OpenSim.Data.MSSQL (@id, @name, @description, @assetType, @local, @temporary, @create_time, @access_time, @data)"; - string assetName = asset.Name; + string assetName = asset.Name; if (asset.Name.Length > 64) { assetName = asset.Name.Substring(0, 64); @@ -223,7 +223,7 @@ namespace OpenSim.Data.MSSQL local = @local, temporary = @temporary, data = @data WHERE id = @keyId;"; - string assetName = asset.Name; + string assetName = asset.Name; if (asset.Name.Length > 64) { assetName = asset.Name.Substring(0, 64); diff --git a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs index 27a4e70..1482184 100644 --- a/OpenSim/Data/MSSQL/MSSQLInventoryData.cs +++ b/OpenSim/Data/MSSQL/MSSQLInventoryData.cs @@ -428,7 +428,7 @@ namespace OpenSim.Data.MSSQL @inventoryBasePermissions, @inventoryEveryOnePermissions, @inventoryGroupPermissions, @salePrice, @saleType, @creationDate, @groupID, @groupOwned, @flags)"; - string itemName = item.Name; + string itemName = item.Name; if (item.Name.Length > 64) { itemName = item.Name.Substring(0, 64); @@ -529,7 +529,7 @@ namespace OpenSim.Data.MSSQL { itemDesc = item.Description.Substring(0, 128); m_log.Warn("[INVENTORY DB]: Description field truncated from " + item.Description.Length.ToString() + " to " + itemDesc.Length.ToString() + " characters on update"); - } + } using (AutoClosingSqlCommand command = database.Query(sql)) { diff --git a/OpenSim/Data/MSSQL/MSSQLRegionData.cs b/OpenSim/Data/MSSQL/MSSQLRegionData.cs index adedcce..e26a830 100644 --- a/OpenSim/Data/MSSQL/MSSQLRegionData.cs +++ b/OpenSim/Data/MSSQL/MSSQLRegionData.cs @@ -146,7 +146,7 @@ namespace OpenSim.Data.MSSQL sceneObjectPart.Name, sceneObjectPart.UUID, sceneObjectPart.GroupPosition, groupID); sceneObjectPart.UUID = groupID; - } + } grp = new SceneObjectGroup(sceneObjectPart); } diff --git a/OpenSim/Data/MSSQL/MSSQLUserAccountData.cs b/OpenSim/Data/MSSQL/MSSQLUserAccountData.cs index e0c0ed6..38be9f4 100644 --- a/OpenSim/Data/MSSQL/MSSQLUserAccountData.cs +++ b/OpenSim/Data/MSSQL/MSSQLUserAccountData.cs @@ -52,7 +52,7 @@ namespace OpenSim.Data.MSSQL conn.Open(); Migration m = new Migration(conn, GetType().Assembly, "UserStore"); m.Update(); - } + } } public List Query(UUID principalID, UUID scopeID, string query) diff --git a/OpenSim/Data/MSSQL/MSSQLUserData.cs b/OpenSim/Data/MSSQL/MSSQLUserData.cs index 6efb89d..3ef1053 100644 --- a/OpenSim/Data/MSSQL/MSSQLUserData.cs +++ b/OpenSim/Data/MSSQL/MSSQLUserData.cs @@ -1146,7 +1146,7 @@ ELSE if (reader.IsDBNull(reader.GetOrdinal("homeRegionID"))) retval.HomeRegionID = UUID.Zero; else - retval.HomeRegionID = new UUID((Guid)reader["homeRegionID"]); + retval.HomeRegionID = new UUID((Guid)reader["homeRegionID"]); retval.Created = Convert.ToInt32(reader["created"].ToString()); retval.LastLogin = Convert.ToInt32(reader["lastLogin"].ToString()); @@ -1200,7 +1200,7 @@ ELSE if (reader.IsDBNull(reader.GetOrdinal("partner"))) retval.Partner = UUID.Zero; else - retval.Partner = new UUID((Guid)reader["partner"]); + retval.Partner = new UUID((Guid)reader["partner"]); } else { diff --git a/OpenSim/Data/MySQL/MySQLAssetData.cs b/OpenSim/Data/MySQL/MySQLAssetData.cs index 66c34fe..0502b2b 100644 --- a/OpenSim/Data/MySQL/MySQLAssetData.cs +++ b/OpenSim/Data/MySQL/MySQLAssetData.cs @@ -204,7 +204,7 @@ namespace OpenSim.Data.MySQL "VALUES(?id, ?name, ?description, ?assetType, ?local, ?temporary, ?create_time, ?access_time, ?data)", _dbConnection.Connection); - string assetName = asset.Name; + string assetName = asset.Name; if (asset.Name.Length > 64) { assetName = asset.Name.Substring(0, 64); diff --git a/OpenSim/Data/MySQL/MySQLInventoryData.cs b/OpenSim/Data/MySQL/MySQLInventoryData.cs index 4521a0f..0eecf06 100644 --- a/OpenSim/Data/MySQL/MySQLInventoryData.cs +++ b/OpenSim/Data/MySQL/MySQLInventoryData.cs @@ -325,10 +325,10 @@ namespace OpenSim.Data.MySQL UUID GroupID = UUID.Zero; UUID.TryParse((string)reader["avatarID"], out Owner); UUID.TryParse((string)reader["groupID"], out GroupID); - item.Owner = Owner; + item.Owner = Owner; item.GroupID = GroupID; - // Rest of the parsing. If these UUID's fail, we're dead anyway + // Rest of the parsing. If these UUID's fail, we're dead anyway item.ID = new UUID((string) reader["inventoryID"]); item.AssetID = new UUID((string) reader["assetID"]); item.AssetType = (int) reader["assetType"]; @@ -472,7 +472,7 @@ namespace OpenSim.Data.MySQL + ", ?inventoryBasePermissions, ?inventoryEveryOnePermissions, ?inventoryGroupPermissions, ?salePrice, ?saleType, ?creationDate" + ", ?groupID, ?groupOwned, ?flags)"; - string itemName = item.Name; + string itemName = item.Name; if (item.Name.Length > 64) { itemName = item.Name.Substring(0, 64); @@ -484,7 +484,7 @@ namespace OpenSim.Data.MySQL { itemDesc = item.Description.Substring(0, 128); m_log.Warn("[INVENTORY DB]: Description field truncated from " + item.Description.Length + " to " + itemDesc.Length + " characters on add item"); - } + } try { @@ -590,12 +590,12 @@ namespace OpenSim.Data.MySQL "REPLACE INTO inventoryfolders (folderID, agentID, parentFolderID, folderName, type, version) VALUES "; sql += "(?folderID, ?agentID, ?parentFolderID, ?folderName, ?type, ?version)"; - string folderName = folder.Name; + string folderName = folder.Name; if (folderName.Length > 64) { folderName = folderName.Substring(0, 64); m_log.Warn("[INVENTORY DB]: Name field truncated from " + folder.Name.Length + " to " + folderName.Length + " characters on add folder"); - } + } database.CheckConnection(); diff --git a/OpenSim/Data/MySQL/MySQLLegacyRegionData.cs b/OpenSim/Data/MySQL/MySQLLegacyRegionData.cs index ed62172..c2dd788 100644 --- a/OpenSim/Data/MySQL/MySQLLegacyRegionData.cs +++ b/OpenSim/Data/MySQL/MySQLLegacyRegionData.cs @@ -464,7 +464,7 @@ namespace OpenSim.Data.MySQL prim.Name, prim.UUID, prim.GroupPosition, groupID); prim.UUID = groupID; - } + } grp = new SceneObjectGroup(prim); } @@ -533,7 +533,7 @@ namespace OpenSim.Data.MySQL /// /// Load in a prim's persisted inventory. /// - /// The prim + /// The prim private void LoadItems(SceneObjectPart prim) { lock (m_Connection) diff --git a/OpenSim/Data/MySQL/MySQLUserData.cs b/OpenSim/Data/MySQL/MySQLUserData.cs index 537ef6c..04f872f 100644 --- a/OpenSim/Data/MySQL/MySQLUserData.cs +++ b/OpenSim/Data/MySQL/MySQLUserData.cs @@ -632,7 +632,7 @@ namespace OpenSim.Data.MySQL UUID zero = UUID.Zero; if (user.ID == zero) { - return; + return; } MySQLSuperManager dbm = GetLockedConnection("AddNewUserProfile"); @@ -666,7 +666,7 @@ namespace OpenSim.Data.MySQL { UUID zero = UUID.Zero; if (agent.ProfileID == zero || agent.SessionID == zero) - return; + return; MySQLSuperManager dbm = GetLockedConnection("AddNewUserAgent"); try diff --git a/OpenSim/Data/NHibernate/NHibernateManager.cs b/OpenSim/Data/NHibernate/NHibernateManager.cs index 7c5cf33..2e7081e 100644 --- a/OpenSim/Data/NHibernate/NHibernateManager.cs +++ b/OpenSim/Data/NHibernate/NHibernateManager.cs @@ -155,7 +155,7 @@ namespace OpenSim.Data.NHibernate m_log.ErrorFormat("[NHIBERNATE] {0} of id {1} loading threw exception: " + e.ToString(), type.Name, id); } return obj; - } + } } /// diff --git a/OpenSim/Data/NHibernate/NHibernateUserData.cs b/OpenSim/Data/NHibernate/NHibernateUserData.cs index 73b630f..1b0c4c9 100644 --- a/OpenSim/Data/NHibernate/NHibernateUserData.cs +++ b/OpenSim/Data/NHibernate/NHibernateUserData.cs @@ -86,7 +86,7 @@ namespace OpenSim.Data.NHibernate m_log.InfoFormat("[NHIBERNATE] GetUserByUUID: {0} ", uuid); user = (UserProfileData)manager.Get(typeof(UserProfileData), uuid); - if (user != null) + if (user != null) { UserAgentData agent = GetAgentByUUID(uuid); if (agent != null) @@ -245,7 +245,7 @@ namespace OpenSim.Data.NHibernate UserProfileData user=GetUserByUUID(agentID); user.WebLoginKey = webLoginKey; UpdateUserProfile(user); - return; + return; } public override void AddNewUserFriend(UUID ownerId, UUID friendId, uint perms) @@ -258,7 +258,7 @@ namespace OpenSim.Data.NHibernate { manager.Insert(new UserFriend(UUID.Random(), friendId, ownerId, perms)); } - return; + return; } private bool FriendRelationExists(UUID ownerId, UUID friendId) diff --git a/OpenSim/Data/RegionProfileData.cs b/OpenSim/Data/RegionProfileData.cs index 1d96631..86d7f6b 100644 --- a/OpenSim/Data/RegionProfileData.cs +++ b/OpenSim/Data/RegionProfileData.cs @@ -137,7 +137,7 @@ namespace OpenSim.Data public uint maturity; - //Data Wrappers + //Data Wrappers public string RegionName { get { return regionName; } diff --git a/OpenSim/Data/SQLite/SQLiteRegionData.cs b/OpenSim/Data/SQLite/SQLiteRegionData.cs index ea076fe..d22a3ec 100644 --- a/OpenSim/Data/SQLite/SQLiteRegionData.cs +++ b/OpenSim/Data/SQLite/SQLiteRegionData.cs @@ -496,7 +496,7 @@ namespace OpenSim.Data.SQLite { //m_log.DebugFormat("[DATASTORE]: Loading inventory for {0}, {1}", prim.Name, prim.UUID); - DataTable dbItems = ds.Tables["primitems"]; + DataTable dbItems = ds.Tables["primitems"]; String sql = String.Format("primID = '{0}'", prim.UUID.ToString()); DataRow[] dbItemRows = dbItems.Select(sql); IList inventory = new List(); diff --git a/OpenSim/Data/Tests/BasicRegionTest.cs b/OpenSim/Data/Tests/BasicRegionTest.cs index c66ab7c..ca1fcfa 100644 --- a/OpenSim/Data/Tests/BasicRegionTest.cs +++ b/OpenSim/Data/Tests/BasicRegionTest.cs @@ -60,7 +60,7 @@ namespace OpenSim.Data.Tests public UUID item2; public UUID item3; - public static Random random; + public static Random random; public string itemname1 = "item1"; @@ -173,7 +173,7 @@ namespace OpenSim.Data.Tests UUID tmp0 = UUID.Random(); UUID tmp1 = UUID.Random(); UUID tmp2 = UUID.Random(); - UUID tmp3 = UUID.Random(); + UUID tmp3 = UUID.Random(); UUID newregion = UUID.Random(); SceneObjectPart p1 = NewSOP("SoP 1",tmp1); SceneObjectPart p2 = NewSOP("SoP 2",tmp2); @@ -224,7 +224,7 @@ namespace OpenSim.Data.Tests random.NextBytes(partsys); DateTime expires = new DateTime(2008, 12, 20); DateTime rezzed = new DateTime(2009, 07, 15); - Vector3 groupos = new Vector3(random.Next(),random.Next(),random.Next()); + Vector3 groupos = new Vector3(random.Next(),random.Next(),random.Next()); Vector3 offset = new Vector3(random.Next(),random.Next(),random.Next()); Quaternion rotoff = new Quaternion(random.Next(),random.Next(),random.Next(),random.Next()); Vector3 velocity = new Vector3(random.Next(),random.Next(),random.Next()); @@ -261,7 +261,7 @@ namespace OpenSim.Data.Tests sop.Shape = pbshap; sop.GroupPosition = groupos; sop.RotationOffset = rotoff; - sop.CreatorID = creator; + sop.CreatorID = creator; sop.InventorySerial = iserial; sop.TaskInventory = dic; sop.ObjectFlags = objf; @@ -306,7 +306,7 @@ namespace OpenSim.Data.Tests Assert.That(expires,Is.EqualTo(sop.Expires), "Assert.That(expires,Is.EqualTo(sop.Expires))"); Assert.That(rezzed,Is.EqualTo(sop.Rezzed), "Assert.That(rezzed,Is.EqualTo(sop.Rezzed))"); Assert.That(offset,Is.EqualTo(sop.OffsetPosition), "Assert.That(offset,Is.EqualTo(sop.OffsetPosition))"); - Assert.That(velocity,Is.EqualTo(sop.Velocity), "Assert.That(velocity,Is.EqualTo(sop.Velocity))"); + Assert.That(velocity,Is.EqualTo(sop.Velocity), "Assert.That(velocity,Is.EqualTo(sop.Velocity))"); Assert.That(angvelo,Is.EqualTo(sop.AngularVelocity), "Assert.That(angvelo,Is.EqualTo(sop.AngularVelocity))"); Assert.That(accel,Is.EqualTo(sop.Acceleration), "Assert.That(accel,Is.EqualTo(sop.Acceleration))"); Assert.That(description,Is.EqualTo(sop.Description), "Assert.That(description,Is.EqualTo(sop.Description))"); @@ -319,7 +319,7 @@ namespace OpenSim.Data.Tests Assert.That(scale,Is.EqualTo(sop.Scale), "Assert.That(scale,Is.EqualTo(sop.Scale))"); Assert.That(updatef,Is.EqualTo(sop.UpdateFlag), "Assert.That(updatef,Is.EqualTo(sop.UpdateFlag))"); - // This is necessary or object will not be inserted in DB + // This is necessary or object will not be inserted in DB sop.ObjectFlags = 0; SceneObjectGroup sog = new SceneObjectGroup(sop); @@ -332,11 +332,11 @@ namespace OpenSim.Data.Tests // Makes sure there are no double insertions: db.StoreObject(sog,region3); sogs = db.LoadObjects(region3); - Assert.That(sogs.Count, Is.EqualTo(1), "Assert.That(sogs.Count, Is.EqualTo(1))"); + Assert.That(sogs.Count, Is.EqualTo(1), "Assert.That(sogs.Count, Is.EqualTo(1))"); // Tests if the parameters were inserted correctly - SceneObjectPart p = sogs[0].RootPart; + SceneObjectPart p = sogs[0].RootPart; Assert.That(regionh,Is.EqualTo(p.RegionHandle), "Assert.That(regionh,Is.EqualTo(p.RegionHandle))"); //Assert.That(localid,Is.EqualTo(p.LocalId), "Assert.That(localid,Is.EqualTo(p.LocalId))"); Assert.That(groupos,Is.EqualTo(p.GroupPosition), "Assert.That(groupos,Is.EqualTo(p.GroupPosition))"); @@ -402,7 +402,7 @@ namespace OpenSim.Data.Tests random.NextBytes(partsys); DateTime expires = new DateTime(2010, 12, 20); DateTime rezzed = new DateTime(2005, 07, 15); - Vector3 groupos = new Vector3(random.Next(),random.Next(),random.Next()); + Vector3 groupos = new Vector3(random.Next(),random.Next(),random.Next()); Vector3 offset = new Vector3(random.Next(),random.Next(),random.Next()); Quaternion rotoff = new Quaternion(random.Next(),random.Next(),random.Next(),random.Next()); Vector3 velocity = new Vector3(random.Next(),random.Next(),random.Next()); @@ -418,7 +418,7 @@ namespace OpenSim.Data.Tests PrimitiveBaseShape pbshap = new PrimitiveBaseShape(); pbshap = PrimitiveBaseShape.Default; Vector3 scale = new Vector3(random.Next(),random.Next(),random.Next()); - byte updatef = (byte) random.Next(127); + byte updatef = (byte) random.Next(127); // Updates the region with new values SceneObjectGroup sog2 = FindSOG("Adam West", region3); @@ -427,7 +427,7 @@ namespace OpenSim.Data.Tests sog2.RootPart.Shape = pbshap; sog2.RootPart.GroupPosition = groupos; sog2.RootPart.RotationOffset = rotoff; - sog2.RootPart.CreatorID = creator; + sog2.RootPart.CreatorID = creator; sog2.RootPart.TaskInventory = dic; sog2.RootPart.Name = name; sog2.RootPart.Material = material; @@ -492,7 +492,7 @@ namespace OpenSim.Data.Tests { UUID tmp = UUID.Random(); SceneObjectPart sop = NewSOP(("Test SOP " + i.ToString()),tmp); - Vector3 groupos = new Vector3(random.Next(),random.Next(),random.Next()); + Vector3 groupos = new Vector3(random.Next(),random.Next(),random.Next()); Vector3 offset = new Vector3(random.Next(),random.Next(),random.Next()); Quaternion rotoff = new Quaternion(random.Next(),random.Next(),random.Next(),random.Next()); Vector3 velocity = new Vector3(random.Next(),random.Next(),random.Next()); @@ -648,7 +648,7 @@ namespace OpenSim.Data.Tests { InventoryItemBase i = new InventoryItemBase(); UUID id = UUID.Random(); - i.ID = id; + i.ID = id; UUID folder = UUID.Random(); i.Folder = folder; UUID owner = UUID.Random(); @@ -666,13 +666,13 @@ namespace OpenSim.Data.Tests i.NextPermissions = nextperm; uint curperm = (uint) random.Next(); i.CurrentPermissions = curperm; - uint baseperm = (uint) random.Next(); + uint baseperm = (uint) random.Next(); i.BasePermissions = baseperm; uint eoperm = (uint) random.Next(); i.EveryOnePermissions = eoperm; int assettype = random.Next(); i.AssetType = assettype; - UUID groupid = UUID.Random(); + UUID groupid = UUID.Random(); i.GroupID = groupid; bool groupown = true; i.GroupOwned = groupown; @@ -1010,7 +1010,7 @@ namespace OpenSim.Data.Tests private SceneObjectPart NewSOP(string name, UUID uuid) { - SceneObjectPart sop = new SceneObjectPart(); + SceneObjectPart sop = new SceneObjectPart(); sop.Name = name; sop.Description = name; sop.Text = RandomName(); @@ -1042,12 +1042,12 @@ namespace OpenSim.Data.Tests int size = random.Next(5,12); char ch ; for (int i=0; i> 8); - homeregy = ((homeregy << 8) >> 8); + homeregy = ((homeregy << 8) >> 8); u.ID = id; u.WebLoginKey = webloginkey; @@ -299,7 +299,7 @@ namespace OpenSim.Data.Tests uint homeregx = (uint) random.Next(); uint homeregy = (uint) random.Next(); Vector3 homeloc = new Vector3((float)Math.Round(random.NextDouble(),5),(float)Math.Round(random.NextDouble(),5),(float)Math.Round(random.NextDouble(),5)); - Vector3 homelookat = new Vector3((float)Math.Round(random.NextDouble(),5),(float)Math.Round(random.NextDouble(),5),(float)Math.Round(random.NextDouble(),5)); + Vector3 homelookat = new Vector3((float)Math.Round(random.NextDouble(),5),(float)Math.Round(random.NextDouble(),5),(float)Math.Round(random.NextDouble(),5)); int created = random.Next(); int lastlogin = random.Next(); string userinvuri = RandomName(); @@ -359,7 +359,7 @@ namespace OpenSim.Data.Tests Assert.That(email,Is.EqualTo(u1a.Email), "Assert.That(email,Is.EqualTo(u1a.Email))"); Assert.That(passhash,Is.EqualTo(u1a.PasswordHash), "Assert.That(passhash,Is.EqualTo(u1a.PasswordHash))"); Assert.That(passsalt,Is.EqualTo(u1a.PasswordSalt), "Assert.That(passsalt,Is.EqualTo(u1a.PasswordSalt))"); - Assert.That(homereg,Is.EqualTo(u1a.HomeRegion), "Assert.That(homereg,Is.EqualTo(u1a.HomeRegion))"); + Assert.That(homereg,Is.EqualTo(u1a.HomeRegion), "Assert.That(homereg,Is.EqualTo(u1a.HomeRegion))"); Assert.That(homeregx,Is.EqualTo(u1a.HomeRegionX), "Assert.That(homeregx,Is.EqualTo(u1a.HomeRegionX))"); Assert.That(homeregy,Is.EqualTo(u1a.HomeRegionY), "Assert.That(homeregy,Is.EqualTo(u1a.HomeRegionY))"); Assert.That(homereg,Is.EqualTo(u1a.HomeRegion), "Assert.That(homereg,Is.EqualTo(u1a.HomeRegion))"); @@ -426,7 +426,7 @@ namespace OpenSim.Data.Tests UserAgentData a2 = db.GetAgentByName(fname2,lname2); UserAgentData a3 = db.GetAgentByName(name3); Assert.That(user2,Is.EqualTo(a2.ProfileID), "Assert.That(user2,Is.EqualTo(a2.ProfileID))"); - Assert.That(user3,Is.EqualTo(a3.ProfileID), "Assert.That(user3,Is.EqualTo(a3.ProfileID))"); + Assert.That(user3,Is.EqualTo(a3.ProfileID), "Assert.That(user3,Is.EqualTo(a3.ProfileID))"); } [Test] @@ -501,11 +501,11 @@ namespace OpenSim.Data.Tests db.AddNewUserFriend(user1,user3, 2); db.AddNewUserFriend(user1,user2, 4); List fl1 = db.GetUserFriendList(user1); - Assert.That(fl1.Count,Is.EqualTo(2), "Assert.That(fl1.Count,Is.EqualTo(2))"); + Assert.That(fl1.Count,Is.EqualTo(2), "Assert.That(fl1.Count,Is.EqualTo(2))"); perms.Add(user2,1); perms.Add(user3,2); for (int i = 0; i < fl1.Count; i++) - { + { Assert.That(user1,Is.EqualTo(fl1[i].FriendListOwner), "Assert.That(user1,Is.EqualTo(fl1[i].FriendListOwner))"); friends.Add(fl1[i].Friend,1); temp = perms[fl1[i].Friend]; @@ -544,7 +544,7 @@ namespace OpenSim.Data.Tests db.UpdateUserFriendPerms(user1, user3, 4); fl1 = db.GetUserFriendList(user1); - Assert.That(fl1[0].FriendPerms,Is.EqualTo(4), "Assert.That(fl1[0].FriendPerms,Is.EqualTo(4))"); + Assert.That(fl1[0].FriendPerms,Is.EqualTo(4), "Assert.That(fl1[0].FriendPerms,Is.EqualTo(4))"); } [Test] @@ -560,7 +560,7 @@ namespace OpenSim.Data.Tests [Test] public void T041_UserAppearancePersistency() { - AvatarAppearance appear = new AvatarAppearance(); + AvatarAppearance appear = new AvatarAppearance(); UUID owner = UUID.Random(); int serial = random.Next(); byte[] visualp = new byte[218]; @@ -698,7 +698,7 @@ namespace OpenSim.Data.Tests int size = random.Next(5,12); char ch ; for (int i=0; i