From 8bacdbd49c65185465347932aca0acf75422271a Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Wed, 5 Nov 2008 13:23:25 +0000 Subject: [PATCH] add a test that ensures that databases work if email is null. From: Sean Dague --- OpenSim/Data/Tests/BasicUserTest.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/OpenSim/Data/Tests/BasicUserTest.cs b/OpenSim/Data/Tests/BasicUserTest.cs index ba4ce707c4..ba6da68c83 100644 --- a/OpenSim/Data/Tests/BasicUserTest.cs +++ b/OpenSim/Data/Tests/BasicUserTest.cs @@ -126,6 +126,9 @@ namespace OpenSim.Data.Tests UserProfileData u1 = NewUser(user1,fname1,lname1); UserProfileData u2 = NewUser(user2,fname2,lname2); UserProfileData u3 = NewUser(user3,fname3,lname3); + // this is used to check whether null works here + u3.Email = null; + db.AddNewUserProfile(u1); db.AddNewUserProfile(u2); db.AddNewUserProfile(u3); @@ -138,6 +141,7 @@ namespace OpenSim.Data.Tests // and one email test Assert.That(u1.Email, Is.EqualTo(u1a.Email)); + Assert.That(u3.Email, Is.Null); } [Test]