aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests/BasicUserTest.cs
diff options
context:
space:
mode:
authorSean Dague2009-04-13 21:04:50 +0000
committerSean Dague2009-04-13 21:04:50 +0000
commit5ef67941658ad1481fe4e801193d4ed43f0452e6 (patch)
tree0fb8b5c51fae496e778025f4a2735d78dcd12742 /OpenSim/Data/Tests/BasicUserTest.cs
parent* Changed all privates to m_ scheme (diff)
downloadopensim-SC_OLD-5ef67941658ad1481fe4e801193d4ed43f0452e6.zip
opensim-SC_OLD-5ef67941658ad1481fe4e801193d4ed43f0452e6.tar.gz
opensim-SC_OLD-5ef67941658ad1481fe4e801193d4ed43f0452e6.tar.bz2
opensim-SC_OLD-5ef67941658ad1481fe4e801193d4ed43f0452e6.tar.xz
make the asserts spit out messages about their test names
Diffstat (limited to 'OpenSim/Data/Tests/BasicUserTest.cs')
-rw-r--r--OpenSim/Data/Tests/BasicUserTest.cs254
1 files changed, 127 insertions, 127 deletions
diff --git a/OpenSim/Data/Tests/BasicUserTest.cs b/OpenSim/Data/Tests/BasicUserTest.cs
index 82ff08b..2a5e567 100644
--- a/OpenSim/Data/Tests/BasicUserTest.cs
+++ b/OpenSim/Data/Tests/BasicUserTest.cs
@@ -139,9 +139,9 @@ namespace OpenSim.Data.Tests
139 UserProfileData u1a = db.GetUserByUUID(user1); 139 UserProfileData u1a = db.GetUserByUUID(user1);
140 UserProfileData u2a = db.GetUserByUUID(user2); 140 UserProfileData u2a = db.GetUserByUUID(user2);
141 UserProfileData u3a = db.GetUserByUUID(user3); 141 UserProfileData u3a = db.GetUserByUUID(user3);
142 Assert.That(user1,Is.EqualTo(u1a.ID)); 142 Assert.That(user1,Is.EqualTo(u1a.ID), "Assert.That(user1,Is.EqualTo(u1a.ID))");
143 Assert.That(user2,Is.EqualTo(u2a.ID)); 143 Assert.That(user2,Is.EqualTo(u2a.ID), "Assert.That(user2,Is.EqualTo(u2a.ID))");
144 Assert.That(user3,Is.EqualTo(u3a.ID)); 144 Assert.That(user3,Is.EqualTo(u3a.ID), "Assert.That(user3,Is.EqualTo(u3a.ID))");
145 145
146 // and one email test 146 // and one email test
147 Assert.That(u3.Email, Is.Null); 147 Assert.That(u3.Email, Is.Null);
@@ -153,30 +153,30 @@ namespace OpenSim.Data.Tests
153 UserProfileData u1 = db.GetUserByName(fname1,lname1); 153 UserProfileData u1 = db.GetUserByName(fname1,lname1);
154 UserProfileData u2 = db.GetUserByName(fname2,lname2); 154 UserProfileData u2 = db.GetUserByName(fname2,lname2);
155 UserProfileData u3 = db.GetUserByName(fname3,lname3); 155 UserProfileData u3 = db.GetUserByName(fname3,lname3);
156 Assert.That(user1,Is.EqualTo(u1.ID)); 156 Assert.That(user1,Is.EqualTo(u1.ID), "Assert.That(user1,Is.EqualTo(u1.ID))");
157 Assert.That(user2,Is.EqualTo(u2.ID)); 157 Assert.That(user2,Is.EqualTo(u2.ID), "Assert.That(user2,Is.EqualTo(u2.ID))");
158 Assert.That(user3,Is.EqualTo(u3.ID)); 158 Assert.That(user3,Is.EqualTo(u3.ID), "Assert.That(user3,Is.EqualTo(u3.ID))");
159 } 159 }
160 160
161 [Test] 161 [Test]
162 public void T012_UpdateUserProfile() 162 public void T012_UpdateUserProfile()
163 { 163 {
164 UserProfileData u1 = db.GetUserByUUID(user1); 164 UserProfileData u1 = db.GetUserByUUID(user1);
165 Assert.That(fname1,Is.EqualTo(u1.FirstName)); 165 Assert.That(fname1,Is.EqualTo(u1.FirstName), "Assert.That(fname1,Is.EqualTo(u1.FirstName))");
166 u1.FirstName = "Ugly"; 166 u1.FirstName = "Ugly";
167 167
168 db.UpdateUserProfile(u1); 168 db.UpdateUserProfile(u1);
169 Assert.That("Ugly",Is.EqualTo(u1.FirstName)); 169 Assert.That("Ugly",Is.EqualTo(u1.FirstName), "Assert.That(\"Ugly\",Is.EqualTo(u1.FirstName))");
170 } 170 }
171 171
172 [Test] 172 [Test]
173 public void T013_StoreUserWebKey() 173 public void T013_StoreUserWebKey()
174 { 174 {
175 UserProfileData u1 = db.GetUserByUUID(user1); 175 UserProfileData u1 = db.GetUserByUUID(user1);
176 Assert.That(u1.WebLoginKey,Is.EqualTo(zero)); 176 Assert.That(u1.WebLoginKey,Is.EqualTo(zero), "Assert.That(u1.WebLoginKey,Is.EqualTo(zero))");
177 db.StoreWebLoginKey(user1, webkey); 177 db.StoreWebLoginKey(user1, webkey);
178 u1 = db.GetUserByUUID(user1); 178 u1 = db.GetUserByUUID(user1);
179 Assert.That(u1.WebLoginKey,Is.EqualTo(webkey)); 179 Assert.That(u1.WebLoginKey,Is.EqualTo(webkey), "Assert.That(u1.WebLoginKey,Is.EqualTo(webkey))");
180 } 180 }
181 181
182 [Test] 182 [Test]
@@ -258,36 +258,36 @@ namespace OpenSim.Data.Tests
258 db.AddNewUserProfile(u); 258 db.AddNewUserProfile(u);
259 UserProfileData u1a = db.GetUserByUUID(id); 259 UserProfileData u1a = db.GetUserByUUID(id);
260 Assert.That(u1a,Is.Not.Null); 260 Assert.That(u1a,Is.Not.Null);
261 Assert.That(id,Is.EqualTo(u1a.ID)); 261 Assert.That(id,Is.EqualTo(u1a.ID), "Assert.That(id,Is.EqualTo(u1a.ID))");
262 Assert.That(homeregion,Is.EqualTo(u1a.HomeRegionID)); 262 Assert.That(homeregion,Is.EqualTo(u1a.HomeRegionID), "Assert.That(homeregion,Is.EqualTo(u1a.HomeRegionID))");
263 Assert.That(webloginkey,Is.EqualTo(u1a.WebLoginKey)); 263 Assert.That(webloginkey,Is.EqualTo(u1a.WebLoginKey), "Assert.That(webloginkey,Is.EqualTo(u1a.WebLoginKey))");
264 Assert.That(fname,Is.EqualTo(u1a.FirstName)); 264 Assert.That(fname,Is.EqualTo(u1a.FirstName), "Assert.That(fname,Is.EqualTo(u1a.FirstName))");
265 Assert.That(lname,Is.EqualTo(u1a.SurName)); 265 Assert.That(lname,Is.EqualTo(u1a.SurName), "Assert.That(lname,Is.EqualTo(u1a.SurName))");
266 Assert.That(email,Is.EqualTo(u1a.Email)); 266 Assert.That(email,Is.EqualTo(u1a.Email), "Assert.That(email,Is.EqualTo(u1a.Email))");
267 Assert.That(passhash,Is.EqualTo(u1a.PasswordHash)); 267 Assert.That(passhash,Is.EqualTo(u1a.PasswordHash), "Assert.That(passhash,Is.EqualTo(u1a.PasswordHash))");
268 Assert.That(passsalt,Is.EqualTo(u1a.PasswordSalt)); 268 Assert.That(passsalt,Is.EqualTo(u1a.PasswordSalt), "Assert.That(passsalt,Is.EqualTo(u1a.PasswordSalt))");
269 Assert.That(homeregx,Is.EqualTo(u1a.HomeRegionX)); 269 Assert.That(homeregx,Is.EqualTo(u1a.HomeRegionX), "Assert.That(homeregx,Is.EqualTo(u1a.HomeRegionX))");
270 Assert.That(homeregy,Is.EqualTo(u1a.HomeRegionY)); 270 Assert.That(homeregy,Is.EqualTo(u1a.HomeRegionY), "Assert.That(homeregy,Is.EqualTo(u1a.HomeRegionY))");
271 Assert.That(homereg,Is.EqualTo(u1a.HomeRegion)); 271 Assert.That(homereg,Is.EqualTo(u1a.HomeRegion), "Assert.That(homereg,Is.EqualTo(u1a.HomeRegion))");
272 Assert.That(homeloc,Is.EqualTo(u1a.HomeLocation)); 272 Assert.That(homeloc,Is.EqualTo(u1a.HomeLocation), "Assert.That(homeloc,Is.EqualTo(u1a.HomeLocation))");
273 Assert.That(homelookat,Is.EqualTo(u1a.HomeLookAt)); 273 Assert.That(homelookat,Is.EqualTo(u1a.HomeLookAt), "Assert.That(homelookat,Is.EqualTo(u1a.HomeLookAt))");
274 Assert.That(created,Is.EqualTo(u1a.Created)); 274 Assert.That(created,Is.EqualTo(u1a.Created), "Assert.That(created,Is.EqualTo(u1a.Created))");
275 Assert.That(lastlogin,Is.EqualTo(u1a.LastLogin)); 275 Assert.That(lastlogin,Is.EqualTo(u1a.LastLogin), "Assert.That(lastlogin,Is.EqualTo(u1a.LastLogin))");
276 // RootInventoryFolderID is not tested because it is saved in SQLite, 276 // RootInventoryFolderID is not tested because it is saved in SQLite,
277 // but not in MySQL 277 // but not in MySQL
278 Assert.That(userinvuri,Is.EqualTo(u1a.UserInventoryURI)); 278 Assert.That(userinvuri,Is.EqualTo(u1a.UserInventoryURI), "Assert.That(userinvuri,Is.EqualTo(u1a.UserInventoryURI))");
279 Assert.That(userasseturi,Is.EqualTo(u1a.UserAssetURI)); 279 Assert.That(userasseturi,Is.EqualTo(u1a.UserAssetURI), "Assert.That(userasseturi,Is.EqualTo(u1a.UserAssetURI))");
280 Assert.That(candomask,Is.EqualTo(u1a.CanDoMask)); 280 Assert.That(candomask,Is.EqualTo(u1a.CanDoMask), "Assert.That(candomask,Is.EqualTo(u1a.CanDoMask))");
281 Assert.That(wantdomask,Is.EqualTo(u1a.WantDoMask)); 281 Assert.That(wantdomask,Is.EqualTo(u1a.WantDoMask), "Assert.That(wantdomask,Is.EqualTo(u1a.WantDoMask))");
282 Assert.That(abouttext,Is.EqualTo(u1a.AboutText)); 282 Assert.That(abouttext,Is.EqualTo(u1a.AboutText), "Assert.That(abouttext,Is.EqualTo(u1a.AboutText))");
283 Assert.That(flabouttext,Is.EqualTo(u1a.FirstLifeAboutText)); 283 Assert.That(flabouttext,Is.EqualTo(u1a.FirstLifeAboutText), "Assert.That(flabouttext,Is.EqualTo(u1a.FirstLifeAboutText))");
284 Assert.That(image,Is.EqualTo(u1a.Image)); 284 Assert.That(image,Is.EqualTo(u1a.Image), "Assert.That(image,Is.EqualTo(u1a.Image))");
285 Assert.That(firstimage,Is.EqualTo(u1a.FirstLifeImage)); 285 Assert.That(firstimage,Is.EqualTo(u1a.FirstLifeImage), "Assert.That(firstimage,Is.EqualTo(u1a.FirstLifeImage))");
286 Assert.That(u1a.CurrentAgent,Is.Null); 286 Assert.That(u1a.CurrentAgent,Is.Null);
287 Assert.That(userflags,Is.EqualTo(u1a.UserFlags)); 287 Assert.That(userflags,Is.EqualTo(u1a.UserFlags), "Assert.That(userflags,Is.EqualTo(u1a.UserFlags))");
288 Assert.That(godlevel,Is.EqualTo(u1a.GodLevel)); 288 Assert.That(godlevel,Is.EqualTo(u1a.GodLevel), "Assert.That(godlevel,Is.EqualTo(u1a.GodLevel))");
289 Assert.That(customtype,Is.EqualTo(u1a.CustomType)); 289 Assert.That(customtype,Is.EqualTo(u1a.CustomType), "Assert.That(customtype,Is.EqualTo(u1a.CustomType))");
290 Assert.That(partner,Is.EqualTo(u1a.Partner)); 290 Assert.That(partner,Is.EqualTo(u1a.Partner), "Assert.That(partner,Is.EqualTo(u1a.Partner))");
291 } 291 }
292 292
293 [Test] 293 [Test]
@@ -357,36 +357,36 @@ namespace OpenSim.Data.Tests
357 db.UpdateUserProfile(u); 357 db.UpdateUserProfile(u);
358 UserProfileData u1a = db.GetUserByUUID(id); 358 UserProfileData u1a = db.GetUserByUUID(id);
359 Assert.That(u1a,Is.Not.Null); 359 Assert.That(u1a,Is.Not.Null);
360 Assert.That(id,Is.EqualTo(u1a.ID)); 360 Assert.That(id,Is.EqualTo(u1a.ID), "Assert.That(id,Is.EqualTo(u1a.ID))");
361 Assert.That(homeregionid,Is.EqualTo(u1a.HomeRegionID)); 361 Assert.That(homeregionid,Is.EqualTo(u1a.HomeRegionID), "Assert.That(homeregionid,Is.EqualTo(u1a.HomeRegionID))");
362 Assert.That(webloginkey,Is.EqualTo(u1a.WebLoginKey)); 362 Assert.That(webloginkey,Is.EqualTo(u1a.WebLoginKey), "Assert.That(webloginkey,Is.EqualTo(u1a.WebLoginKey))");
363 Assert.That(fname,Is.EqualTo(u1a.FirstName)); 363 Assert.That(fname,Is.EqualTo(u1a.FirstName), "Assert.That(fname,Is.EqualTo(u1a.FirstName))");
364 Assert.That(lname,Is.EqualTo(u1a.SurName)); 364 Assert.That(lname,Is.EqualTo(u1a.SurName), "Assert.That(lname,Is.EqualTo(u1a.SurName))");
365 Assert.That(email,Is.EqualTo(u1a.Email)); 365 Assert.That(email,Is.EqualTo(u1a.Email), "Assert.That(email,Is.EqualTo(u1a.Email))");
366 Assert.That(passhash,Is.EqualTo(u1a.PasswordHash)); 366 Assert.That(passhash,Is.EqualTo(u1a.PasswordHash), "Assert.That(passhash,Is.EqualTo(u1a.PasswordHash))");
367 Assert.That(passsalt,Is.EqualTo(u1a.PasswordSalt)); 367 Assert.That(passsalt,Is.EqualTo(u1a.PasswordSalt), "Assert.That(passsalt,Is.EqualTo(u1a.PasswordSalt))");
368 Assert.That(homereg,Is.EqualTo(u1a.HomeRegion)); 368 Assert.That(homereg,Is.EqualTo(u1a.HomeRegion), "Assert.That(homereg,Is.EqualTo(u1a.HomeRegion))");
369 Assert.That(homeregx,Is.EqualTo(u1a.HomeRegionX)); 369 Assert.That(homeregx,Is.EqualTo(u1a.HomeRegionX), "Assert.That(homeregx,Is.EqualTo(u1a.HomeRegionX))");
370 Assert.That(homeregy,Is.EqualTo(u1a.HomeRegionY)); 370 Assert.That(homeregy,Is.EqualTo(u1a.HomeRegionY), "Assert.That(homeregy,Is.EqualTo(u1a.HomeRegionY))");
371 Assert.That(homereg,Is.EqualTo(u1a.HomeRegion)); 371 Assert.That(homereg,Is.EqualTo(u1a.HomeRegion), "Assert.That(homereg,Is.EqualTo(u1a.HomeRegion))");
372 Assert.That(homeloc,Is.EqualTo(u1a.HomeLocation)); 372 Assert.That(homeloc,Is.EqualTo(u1a.HomeLocation), "Assert.That(homeloc,Is.EqualTo(u1a.HomeLocation))");
373 Assert.That(homelookat,Is.EqualTo(u1a.HomeLookAt)); 373 Assert.That(homelookat,Is.EqualTo(u1a.HomeLookAt), "Assert.That(homelookat,Is.EqualTo(u1a.HomeLookAt))");
374 Assert.That(created,Is.EqualTo(u1a.Created)); 374 Assert.That(created,Is.EqualTo(u1a.Created), "Assert.That(created,Is.EqualTo(u1a.Created))");
375 Assert.That(lastlogin,Is.EqualTo(u1a.LastLogin)); 375 Assert.That(lastlogin,Is.EqualTo(u1a.LastLogin), "Assert.That(lastlogin,Is.EqualTo(u1a.LastLogin))");
376 // RootInventoryFolderID is not tested because it is saved in SQLite, 376 // RootInventoryFolderID is not tested because it is saved in SQLite,
377 // but not in MySQL 377 // but not in MySQL
378 Assert.That(userasseturi,Is.EqualTo(u1a.UserAssetURI)); 378 Assert.That(userasseturi,Is.EqualTo(u1a.UserAssetURI), "Assert.That(userasseturi,Is.EqualTo(u1a.UserAssetURI))");
379 Assert.That(candomask,Is.EqualTo(u1a.CanDoMask)); 379 Assert.That(candomask,Is.EqualTo(u1a.CanDoMask), "Assert.That(candomask,Is.EqualTo(u1a.CanDoMask))");
380 Assert.That(wantdomask,Is.EqualTo(u1a.WantDoMask)); 380 Assert.That(wantdomask,Is.EqualTo(u1a.WantDoMask), "Assert.That(wantdomask,Is.EqualTo(u1a.WantDoMask))");
381 Assert.That(abouttext,Is.EqualTo(u1a.AboutText)); 381 Assert.That(abouttext,Is.EqualTo(u1a.AboutText), "Assert.That(abouttext,Is.EqualTo(u1a.AboutText))");
382 Assert.That(flabouttext,Is.EqualTo(u1a.FirstLifeAboutText)); 382 Assert.That(flabouttext,Is.EqualTo(u1a.FirstLifeAboutText), "Assert.That(flabouttext,Is.EqualTo(u1a.FirstLifeAboutText))");
383 Assert.That(image,Is.EqualTo(u1a.Image)); 383 Assert.That(image,Is.EqualTo(u1a.Image), "Assert.That(image,Is.EqualTo(u1a.Image))");
384 Assert.That(firstimage,Is.EqualTo(u1a.FirstLifeImage)); 384 Assert.That(firstimage,Is.EqualTo(u1a.FirstLifeImage), "Assert.That(firstimage,Is.EqualTo(u1a.FirstLifeImage))");
385 Assert.That(u1a.CurrentAgent,Is.Null); 385 Assert.That(u1a.CurrentAgent,Is.Null);
386 Assert.That(userflags,Is.EqualTo(u1a.UserFlags)); 386 Assert.That(userflags,Is.EqualTo(u1a.UserFlags), "Assert.That(userflags,Is.EqualTo(u1a.UserFlags))");
387 Assert.That(godlevel,Is.EqualTo(u1a.GodLevel)); 387 Assert.That(godlevel,Is.EqualTo(u1a.GodLevel), "Assert.That(godlevel,Is.EqualTo(u1a.GodLevel))");
388 Assert.That(customtype,Is.EqualTo(u1a.CustomType)); 388 Assert.That(customtype,Is.EqualTo(u1a.CustomType), "Assert.That(customtype,Is.EqualTo(u1a.CustomType))");
389 Assert.That(partner,Is.EqualTo(u1a.Partner)); 389 Assert.That(partner,Is.EqualTo(u1a.Partner), "Assert.That(partner,Is.EqualTo(u1a.Partner))");
390 } 390 }
391 391
392 [Test] 392 [Test]
@@ -401,12 +401,12 @@ namespace OpenSim.Data.Tests
401 UserAgentData a1a = db.GetAgentByUUID(user1); 401 UserAgentData a1a = db.GetAgentByUUID(user1);
402 UserAgentData a2a = db.GetAgentByUUID(user2); 402 UserAgentData a2a = db.GetAgentByUUID(user2);
403 UserAgentData a3a = db.GetAgentByUUID(user3); 403 UserAgentData a3a = db.GetAgentByUUID(user3);
404 Assert.That(agent1,Is.EqualTo(a1a.SessionID)); 404 Assert.That(agent1,Is.EqualTo(a1a.SessionID), "Assert.That(agent1,Is.EqualTo(a1a.SessionID))");
405 Assert.That(user1,Is.EqualTo(a1a.ProfileID)); 405 Assert.That(user1,Is.EqualTo(a1a.ProfileID), "Assert.That(user1,Is.EqualTo(a1a.ProfileID))");
406 Assert.That(agent2,Is.EqualTo(a2a.SessionID)); 406 Assert.That(agent2,Is.EqualTo(a2a.SessionID), "Assert.That(agent2,Is.EqualTo(a2a.SessionID))");
407 Assert.That(user2,Is.EqualTo(a2a.ProfileID)); 407 Assert.That(user2,Is.EqualTo(a2a.ProfileID), "Assert.That(user2,Is.EqualTo(a2a.ProfileID))");
408 Assert.That(agent3,Is.EqualTo(a3a.SessionID)); 408 Assert.That(agent3,Is.EqualTo(a3a.SessionID), "Assert.That(agent3,Is.EqualTo(a3a.SessionID))");
409 Assert.That(user3,Is.EqualTo(a3a.ProfileID)); 409 Assert.That(user3,Is.EqualTo(a3a.ProfileID), "Assert.That(user3,Is.EqualTo(a3a.ProfileID))");
410 } 410 }
411 411
412 [Test] 412 [Test]
@@ -415,8 +415,8 @@ namespace OpenSim.Data.Tests
415 String name3 = fname3 + " " + lname3; 415 String name3 = fname3 + " " + lname3;
416 UserAgentData a2 = db.GetAgentByName(fname2,lname2); 416 UserAgentData a2 = db.GetAgentByName(fname2,lname2);
417 UserAgentData a3 = db.GetAgentByName(name3); 417 UserAgentData a3 = db.GetAgentByName(name3);
418 Assert.That(user2,Is.EqualTo(a2.ProfileID)); 418 Assert.That(user2,Is.EqualTo(a2.ProfileID), "Assert.That(user2,Is.EqualTo(a2.ProfileID))");
419 Assert.That(user3,Is.EqualTo(a3.ProfileID)); 419 Assert.That(user3,Is.EqualTo(a3.ProfileID), "Assert.That(user3,Is.EqualTo(a3.ProfileID))");
420 } 420 }
421 421
422 [Test] 422 [Test]
@@ -466,18 +466,18 @@ namespace OpenSim.Data.Tests
466 db.AddNewUserAgent(a); 466 db.AddNewUserAgent(a);
467 467
468 UserAgentData a1 = db.GetAgentByUUID(user4); 468 UserAgentData a1 = db.GetAgentByUUID(user4);
469 Assert.That(user,Is.EqualTo(a1.ProfileID)); 469 Assert.That(user,Is.EqualTo(a1.ProfileID), "Assert.That(user,Is.EqualTo(a1.ProfileID))");
470 Assert.That(agent,Is.EqualTo(a1.SessionID)); 470 Assert.That(agent,Is.EqualTo(a1.SessionID), "Assert.That(agent,Is.EqualTo(a1.SessionID))");
471 Assert.That(secureagent,Is.EqualTo(a1.SecureSessionID)); 471 Assert.That(secureagent,Is.EqualTo(a1.SecureSessionID), "Assert.That(secureagent,Is.EqualTo(a1.SecureSessionID))");
472 Assert.That(agentip,Is.EqualTo(a1.AgentIP)); 472 Assert.That(agentip,Is.EqualTo(a1.AgentIP), "Assert.That(agentip,Is.EqualTo(a1.AgentIP))");
473 Assert.That(agentport,Is.EqualTo(a1.AgentPort)); 473 Assert.That(agentport,Is.EqualTo(a1.AgentPort), "Assert.That(agentport,Is.EqualTo(a1.AgentPort))");
474 Assert.That(agentonline,Is.EqualTo(a1.AgentOnline)); 474 Assert.That(agentonline,Is.EqualTo(a1.AgentOnline), "Assert.That(agentonline,Is.EqualTo(a1.AgentOnline))");
475 Assert.That(logintime,Is.EqualTo(a1.LoginTime)); 475 Assert.That(logintime,Is.EqualTo(a1.LoginTime), "Assert.That(logintime,Is.EqualTo(a1.LoginTime))");
476 Assert.That(logouttime,Is.EqualTo(a1.LogoutTime)); 476 Assert.That(logouttime,Is.EqualTo(a1.LogoutTime), "Assert.That(logouttime,Is.EqualTo(a1.LogoutTime))");
477 Assert.That(regionid,Is.EqualTo(a1.Region)); 477 Assert.That(regionid,Is.EqualTo(a1.Region), "Assert.That(regionid,Is.EqualTo(a1.Region))");
478 Assert.That(regionhandle,Is.EqualTo(a1.Handle)); 478 Assert.That(regionhandle,Is.EqualTo(a1.Handle), "Assert.That(regionhandle,Is.EqualTo(a1.Handle))");
479 Assert.That(currentpos,Is.EqualTo(a1.Position)); 479 Assert.That(currentpos,Is.EqualTo(a1.Position), "Assert.That(currentpos,Is.EqualTo(a1.Position))");
480 Assert.That(currentlookat,Is.EqualTo(a1.LookAt)); 480 Assert.That(currentlookat,Is.EqualTo(a1.LookAt), "Assert.That(currentlookat,Is.EqualTo(a1.LookAt))");
481 } 481 }
482 482
483 [Test] 483 [Test]
@@ -491,19 +491,19 @@ namespace OpenSim.Data.Tests
491 db.AddNewUserFriend(user1,user3, 2); 491 db.AddNewUserFriend(user1,user3, 2);
492 db.AddNewUserFriend(user1,user2, 4); 492 db.AddNewUserFriend(user1,user2, 4);
493 List<FriendListItem> fl1 = db.GetUserFriendList(user1); 493 List<FriendListItem> fl1 = db.GetUserFriendList(user1);
494 Assert.That(fl1.Count,Is.EqualTo(2)); 494 Assert.That(fl1.Count,Is.EqualTo(2), "Assert.That(fl1.Count,Is.EqualTo(2))");
495 perms.Add(user2,1); 495 perms.Add(user2,1);
496 perms.Add(user3,2); 496 perms.Add(user3,2);
497 for (int i = 0; i < fl1.Count; i++) 497 for (int i = 0; i < fl1.Count; i++)
498 { 498 {
499 Assert.That(user1,Is.EqualTo(fl1[i].FriendListOwner)); 499 Assert.That(user1,Is.EqualTo(fl1[i].FriendListOwner), "Assert.That(user1,Is.EqualTo(fl1[i].FriendListOwner))");
500 friends.Add(fl1[i].Friend,1); 500 friends.Add(fl1[i].Friend,1);
501 temp = perms[fl1[i].Friend]; 501 temp = perms[fl1[i].Friend];
502 Assert.That(temp,Is.EqualTo(fl1[i].FriendPerms)); 502 Assert.That(temp,Is.EqualTo(fl1[i].FriendPerms), "Assert.That(temp,Is.EqualTo(fl1[i].FriendPerms))");
503 } 503 }
504 tempu1 = friends[user2]; 504 tempu1 = friends[user2];
505 tempu2 = friends[user3]; 505 tempu2 = friends[user3];
506 Assert.That(1,Is.EqualTo(tempu1) & Is.EqualTo(tempu2)); 506 Assert.That(1,Is.EqualTo(tempu1) & Is.EqualTo(tempu2), "Assert.That(1,Is.EqualTo(tempu1) & Is.EqualTo(tempu2))");
507 } 507 }
508 508
509 [Test] 509 [Test]
@@ -513,15 +513,15 @@ namespace OpenSim.Data.Tests
513 List<FriendListItem> fl1 = db.GetUserFriendList(user1); 513 List<FriendListItem> fl1 = db.GetUserFriendList(user1);
514 List<FriendListItem> fl2 = db.GetUserFriendList(user2); 514 List<FriendListItem> fl2 = db.GetUserFriendList(user2);
515 515
516 Assert.That(fl1.Count,Is.EqualTo(2)); 516 Assert.That(fl1.Count,Is.EqualTo(2), "Assert.That(fl1.Count,Is.EqualTo(2))");
517 Assert.That(fl1[0].Friend,Is.EqualTo(user2) | Is.EqualTo(user3)); 517 Assert.That(fl1[0].Friend,Is.EqualTo(user2) | Is.EqualTo(user3), "Assert.That(fl1[0].Friend,Is.EqualTo(user2) | Is.EqualTo(user3))");
518 Assert.That(fl2[0].Friend,Is.EqualTo(user1)); 518 Assert.That(fl2[0].Friend,Is.EqualTo(user1), "Assert.That(fl2[0].Friend,Is.EqualTo(user1))");
519 db.RemoveUserFriend(user2, user1); 519 db.RemoveUserFriend(user2, user1);
520 520
521 fl1 = db.GetUserFriendList(user1); 521 fl1 = db.GetUserFriendList(user1);
522 fl2 = db.GetUserFriendList(user2); 522 fl2 = db.GetUserFriendList(user2);
523 Assert.That(fl1.Count,Is.EqualTo(1)); 523 Assert.That(fl1.Count,Is.EqualTo(1), "Assert.That(fl1.Count,Is.EqualTo(1))");
524 Assert.That(fl1[0].Friend, Is.EqualTo(user3)); 524 Assert.That(fl1[0].Friend, Is.EqualTo(user3), "Assert.That(fl1[0].Friend, Is.EqualTo(user3))");
525 Assert.That(fl2, Is.Empty); 525 Assert.That(fl2, Is.Empty);
526 } 526 }
527 527
@@ -530,11 +530,11 @@ namespace OpenSim.Data.Tests
530 // user1 has 1 friend, user3, who has permission 2 in T030. 530 // user1 has 1 friend, user3, who has permission 2 in T030.
531 { 531 {
532 List<FriendListItem> fl1 = db.GetUserFriendList(user1); 532 List<FriendListItem> fl1 = db.GetUserFriendList(user1);
533 Assert.That(fl1[0].FriendPerms,Is.EqualTo(2)); 533 Assert.That(fl1[0].FriendPerms,Is.EqualTo(2), "Assert.That(fl1[0].FriendPerms,Is.EqualTo(2))");
534 db.UpdateUserFriendPerms(user1, user3, 4); 534 db.UpdateUserFriendPerms(user1, user3, 4);
535 535
536 fl1 = db.GetUserFriendList(user1); 536 fl1 = db.GetUserFriendList(user1);
537 Assert.That(fl1[0].FriendPerms,Is.EqualTo(4)); 537 Assert.That(fl1[0].FriendPerms,Is.EqualTo(4), "Assert.That(fl1[0].FriendPerms,Is.EqualTo(4))");
538 } 538 }
539 539
540 [Test] 540 [Test]
@@ -544,7 +544,7 @@ namespace OpenSim.Data.Tests
544 appear.Owner = user1; 544 appear.Owner = user1;
545 db.UpdateUserAppearance(user1, appear); 545 db.UpdateUserAppearance(user1, appear);
546 AvatarAppearance user1app = db.GetUserAppearance(user1); 546 AvatarAppearance user1app = db.GetUserAppearance(user1);
547 Assert.That(user1,Is.EqualTo(user1app.Owner)); 547 Assert.That(user1,Is.EqualTo(user1app.Owner), "Assert.That(user1,Is.EqualTo(user1app.Owner))");
548 } 548 }
549 549
550 [Test] 550 [Test]
@@ -619,37 +619,37 @@ namespace OpenSim.Data.Tests
619 db.UpdateUserAppearance(owner, appear); 619 db.UpdateUserAppearance(owner, appear);
620 AvatarAppearance app = db.GetUserAppearance(owner); 620 AvatarAppearance app = db.GetUserAppearance(owner);
621 621
622 Assert.That(owner,Is.EqualTo(app.Owner)); 622 Assert.That(owner,Is.EqualTo(app.Owner), "Assert.That(owner,Is.EqualTo(app.Owner))");
623 Assert.That(serial,Is.EqualTo(app.Serial)); 623 Assert.That(serial,Is.EqualTo(app.Serial), "Assert.That(serial,Is.EqualTo(app.Serial))");
624 Assert.That(visualp,Is.EqualTo(app.VisualParams)); 624 Assert.That(visualp,Is.EqualTo(app.VisualParams), "Assert.That(visualp,Is.EqualTo(app.VisualParams))");
625 Assert.That(bodyitem,Is.EqualTo(app.BodyItem)); 625 Assert.That(bodyitem,Is.EqualTo(app.BodyItem), "Assert.That(bodyitem,Is.EqualTo(app.BodyItem))");
626 Assert.That(bodyasset,Is.EqualTo(app.BodyAsset)); 626 Assert.That(bodyasset,Is.EqualTo(app.BodyAsset), "Assert.That(bodyasset,Is.EqualTo(app.BodyAsset))");
627 Assert.That(skinitem,Is.EqualTo(app.SkinItem)); 627 Assert.That(skinitem,Is.EqualTo(app.SkinItem), "Assert.That(skinitem,Is.EqualTo(app.SkinItem))");
628 Assert.That(skinasset,Is.EqualTo(app.SkinAsset)); 628 Assert.That(skinasset,Is.EqualTo(app.SkinAsset), "Assert.That(skinasset,Is.EqualTo(app.SkinAsset))");
629 Assert.That(hairitem,Is.EqualTo(app.HairItem)); 629 Assert.That(hairitem,Is.EqualTo(app.HairItem), "Assert.That(hairitem,Is.EqualTo(app.HairItem))");
630 Assert.That(hairasset,Is.EqualTo(app.HairAsset)); 630 Assert.That(hairasset,Is.EqualTo(app.HairAsset), "Assert.That(hairasset,Is.EqualTo(app.HairAsset))");
631 Assert.That(eyesitem,Is.EqualTo(app.EyesItem)); 631 Assert.That(eyesitem,Is.EqualTo(app.EyesItem), "Assert.That(eyesitem,Is.EqualTo(app.EyesItem))");
632 Assert.That(eyesasset,Is.EqualTo(app.EyesAsset)); 632 Assert.That(eyesasset,Is.EqualTo(app.EyesAsset), "Assert.That(eyesasset,Is.EqualTo(app.EyesAsset))");
633 Assert.That(shirtitem,Is.EqualTo(app.ShirtItem)); 633 Assert.That(shirtitem,Is.EqualTo(app.ShirtItem), "Assert.That(shirtitem,Is.EqualTo(app.ShirtItem))");
634 Assert.That(shirtasset,Is.EqualTo(app.ShirtAsset)); 634 Assert.That(shirtasset,Is.EqualTo(app.ShirtAsset), "Assert.That(shirtasset,Is.EqualTo(app.ShirtAsset))");
635 Assert.That(pantsitem,Is.EqualTo(app.PantsItem)); 635 Assert.That(pantsitem,Is.EqualTo(app.PantsItem), "Assert.That(pantsitem,Is.EqualTo(app.PantsItem))");
636 Assert.That(pantsasset,Is.EqualTo(app.PantsAsset)); 636 Assert.That(pantsasset,Is.EqualTo(app.PantsAsset), "Assert.That(pantsasset,Is.EqualTo(app.PantsAsset))");
637 Assert.That(shoesitem,Is.EqualTo(app.ShoesItem)); 637 Assert.That(shoesitem,Is.EqualTo(app.ShoesItem), "Assert.That(shoesitem,Is.EqualTo(app.ShoesItem))");
638 Assert.That(shoesasset,Is.EqualTo(app.ShoesAsset)); 638 Assert.That(shoesasset,Is.EqualTo(app.ShoesAsset), "Assert.That(shoesasset,Is.EqualTo(app.ShoesAsset))");
639 Assert.That(socksitem,Is.EqualTo(app.SocksItem)); 639 Assert.That(socksitem,Is.EqualTo(app.SocksItem), "Assert.That(socksitem,Is.EqualTo(app.SocksItem))");
640 Assert.That(socksasset,Is.EqualTo(app.SocksAsset)); 640 Assert.That(socksasset,Is.EqualTo(app.SocksAsset), "Assert.That(socksasset,Is.EqualTo(app.SocksAsset))");
641 Assert.That(jacketitem,Is.EqualTo(app.JacketItem)); 641 Assert.That(jacketitem,Is.EqualTo(app.JacketItem), "Assert.That(jacketitem,Is.EqualTo(app.JacketItem))");
642 Assert.That(jacketasset,Is.EqualTo(app.JacketAsset)); 642 Assert.That(jacketasset,Is.EqualTo(app.JacketAsset), "Assert.That(jacketasset,Is.EqualTo(app.JacketAsset))");
643 Assert.That(glovesitem,Is.EqualTo(app.GlovesItem)); 643 Assert.That(glovesitem,Is.EqualTo(app.GlovesItem), "Assert.That(glovesitem,Is.EqualTo(app.GlovesItem))");
644 Assert.That(glovesasset,Is.EqualTo(app.GlovesAsset)); 644 Assert.That(glovesasset,Is.EqualTo(app.GlovesAsset), "Assert.That(glovesasset,Is.EqualTo(app.GlovesAsset))");
645 Assert.That(ushirtitem,Is.EqualTo(app.UnderShirtItem)); 645 Assert.That(ushirtitem,Is.EqualTo(app.UnderShirtItem), "Assert.That(ushirtitem,Is.EqualTo(app.UnderShirtItem))");
646 Assert.That(ushirtasset,Is.EqualTo(app.UnderShirtAsset)); 646 Assert.That(ushirtasset,Is.EqualTo(app.UnderShirtAsset), "Assert.That(ushirtasset,Is.EqualTo(app.UnderShirtAsset))");
647 Assert.That(upantsitem,Is.EqualTo(app.UnderPantsItem)); 647 Assert.That(upantsitem,Is.EqualTo(app.UnderPantsItem), "Assert.That(upantsitem,Is.EqualTo(app.UnderPantsItem))");
648 Assert.That(upantsasset,Is.EqualTo(app.UnderPantsAsset)); 648 Assert.That(upantsasset,Is.EqualTo(app.UnderPantsAsset), "Assert.That(upantsasset,Is.EqualTo(app.UnderPantsAsset))");
649 Assert.That(skirtitem,Is.EqualTo(app.SkirtItem)); 649 Assert.That(skirtitem,Is.EqualTo(app.SkirtItem), "Assert.That(skirtitem,Is.EqualTo(app.SkirtItem))");
650 Assert.That(skirtasset,Is.EqualTo(app.SkirtAsset)); 650 Assert.That(skirtasset,Is.EqualTo(app.SkirtAsset), "Assert.That(skirtasset,Is.EqualTo(app.SkirtAsset))");
651 Assert.That(texture.ToString(),Is.EqualTo(app.Texture.ToString())); 651 Assert.That(texture.ToString(),Is.EqualTo(app.Texture.ToString()), "Assert.That(texture.ToString(),Is.EqualTo(app.Texture.ToString()))");
652 Assert.That(avatarheight,Is.EqualTo(app.AvatarHeight)); 652 Assert.That(avatarheight,Is.EqualTo(app.AvatarHeight), "Assert.That(avatarheight,Is.EqualTo(app.AvatarHeight))");
653 } 653 }
654 654
655 public UserProfileData NewUser(UUID id,string fname,string lname) 655 public UserProfileData NewUser(UUID id,string fname,string lname)