aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Data/Tests/BasicUserTest.cs
diff options
context:
space:
mode:
authorKunnis2009-08-16 03:35:31 -0500
committerTeravus Ovares (Dan Olivares)2009-08-16 14:34:16 -0400
commitdd78c250aed0924d06e28a826c2ad565ca232045 (patch)
tree331487699d7d2fba8d00cd2a8e57b85e8f77e794 /OpenSim/Data/Tests/BasicUserTest.cs
parent* More improvements to BasicAssetTest.cs (diff)
downloadopensim-SC_OLD-dd78c250aed0924d06e28a826c2ad565ca232045.zip
opensim-SC_OLD-dd78c250aed0924d06e28a826c2ad565ca232045.tar.gz
opensim-SC_OLD-dd78c250aed0924d06e28a826c2ad565ca232045.tar.bz2
opensim-SC_OLD-dd78c250aed0924d06e28a826c2ad565ca232045.tar.xz
* Added Expression based ignores to the PropertyScrambler, which makes a lot of the tests clearer because I'm not constantly resetting properties.
Diffstat (limited to 'OpenSim/Data/Tests/BasicUserTest.cs')
-rw-r--r--OpenSim/Data/Tests/BasicUserTest.cs12
1 files changed, 2 insertions, 10 deletions
diff --git a/OpenSim/Data/Tests/BasicUserTest.cs b/OpenSim/Data/Tests/BasicUserTest.cs
index a3c125d..f9feb9b 100644
--- a/OpenSim/Data/Tests/BasicUserTest.cs
+++ b/OpenSim/Data/Tests/BasicUserTest.cs
@@ -71,14 +71,7 @@ namespace OpenSim.Data.Tests
71 71
72 public void SuperInit() 72 public void SuperInit()
73 { 73 {
74 try 74 OpenSim.Tests.Common.TestLogging.LogToConsole();
75 {
76 XmlConfigurator.Configure();
77 }
78 catch (Exception)
79 {
80 // I don't care, just leave log4net off
81 }
82 random = new Random(); 75 random = new Random();
83 user1 = UUID.Random(); 76 user1 = UUID.Random();
84 user2 = UUID.Random(); 77 user2 = UUID.Random();
@@ -395,8 +388,7 @@ namespace OpenSim.Data.Tests
395 { 388 {
396 UUID id = user5; 389 UUID id = user5;
397 UserProfileData u = db.GetUserByUUID(id); 390 UserProfileData u = db.GetUserByUUID(id);
398 ScrambleForTesting.Scramble(u); 391 new PropertyScrambler<UserProfileData>().DontScramble(x=>x.ID).Scramble(u);
399 u.ID = id;
400 392
401 db.UpdateUserProfile(u); 393 db.UpdateUserProfile(u);
402 UserProfileData u1a = db.GetUserByUUID(id); 394 UserProfileData u1a = db.GetUserByUUID(id);