aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim
diff options
context:
space:
mode:
authorSean Dague2008-11-05 13:23:25 +0000
committerSean Dague2008-11-05 13:23:25 +0000
commit8bacdbd49c65185465347932aca0acf75422271a (patch)
tree2b7fca4e751048637ff54fc9d95b6a2c872c1c11 /OpenSim
parentadded missing file from mantis #2555 (diff)
downloadopensim-SC-8bacdbd49c65185465347932aca0acf75422271a.zip
opensim-SC-8bacdbd49c65185465347932aca0acf75422271a.tar.gz
opensim-SC-8bacdbd49c65185465347932aca0acf75422271a.tar.bz2
opensim-SC-8bacdbd49c65185465347932aca0acf75422271a.tar.xz
add a test that ensures that databases work if email is null.
From: Sean Dague <sdague@gmail.com>
Diffstat (limited to '')
-rw-r--r--OpenSim/Data/Tests/BasicUserTest.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/OpenSim/Data/Tests/BasicUserTest.cs b/OpenSim/Data/Tests/BasicUserTest.cs
index ba4ce70..ba6da68 100644
--- a/OpenSim/Data/Tests/BasicUserTest.cs
+++ b/OpenSim/Data/Tests/BasicUserTest.cs
@@ -126,6 +126,9 @@ namespace OpenSim.Data.Tests
126 UserProfileData u1 = NewUser(user1,fname1,lname1); 126 UserProfileData u1 = NewUser(user1,fname1,lname1);
127 UserProfileData u2 = NewUser(user2,fname2,lname2); 127 UserProfileData u2 = NewUser(user2,fname2,lname2);
128 UserProfileData u3 = NewUser(user3,fname3,lname3); 128 UserProfileData u3 = NewUser(user3,fname3,lname3);
129 // this is used to check whether null works here
130 u3.Email = null;
131
129 db.AddNewUserProfile(u1); 132 db.AddNewUserProfile(u1);
130 db.AddNewUserProfile(u2); 133 db.AddNewUserProfile(u2);
131 db.AddNewUserProfile(u3); 134 db.AddNewUserProfile(u3);
@@ -138,6 +141,7 @@ namespace OpenSim.Data.Tests
138 141
139 // and one email test 142 // and one email test
140 Assert.That(u1.Email, Is.EqualTo(u1a.Email)); 143 Assert.That(u1.Email, Is.EqualTo(u1a.Email));
144 Assert.That(u3.Email, Is.Null);
141 } 145 }
142 146
143 [Test] 147 [Test]