diff options
Diffstat (limited to 'OpenSim/Tests/Robust/Clients/UserAccounts/UserAccountsClient.cs')
-rw-r--r-- | OpenSim/Tests/Robust/Clients/UserAccounts/UserAccountsClient.cs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/OpenSim/Tests/Robust/Clients/UserAccounts/UserAccountsClient.cs b/OpenSim/Tests/Robust/Clients/UserAccounts/UserAccountsClient.cs index 2f92123..2c327e8 100644 --- a/OpenSim/Tests/Robust/Clients/UserAccounts/UserAccountsClient.cs +++ b/OpenSim/Tests/Robust/Clients/UserAccounts/UserAccountsClient.cs | |||
@@ -67,7 +67,7 @@ namespace Robust.Tests | |||
67 | 67 | ||
68 | account.Email = "user@example.com"; | 68 | account.Email = "user@example.com"; |
69 | bool success = m_Connector.StoreUserAccount(account); | 69 | bool success = m_Connector.StoreUserAccount(account); |
70 | Assert.IsTrue(success, "Failed to store account"); | 70 | Assert.IsTrue(success, "Failed to store existing account"); |
71 | 71 | ||
72 | account = m_Connector.GetUserAccount(UUID.Zero, user1); | 72 | account = m_Connector.GetUserAccount(UUID.Zero, user1); |
73 | Assert.NotNull(account, "Failed to retrieve account for user id " + user1); | 73 | Assert.NotNull(account, "Failed to retrieve account for user id " + user1); |
@@ -75,6 +75,10 @@ namespace Robust.Tests | |||
75 | 75 | ||
76 | account = m_Connector.GetUserAccount(UUID.Zero, "DoesNot", "Exist"); | 76 | account = m_Connector.GetUserAccount(UUID.Zero, "DoesNot", "Exist"); |
77 | Assert.IsNull(account, "Account DoesNot Exit must not be there"); | 77 | Assert.IsNull(account, "Account DoesNot Exit must not be there"); |
78 | |||
79 | account = new UserAccount(UUID.Zero, "DoesNot", "Exist", "xxx@xxx.com"); | ||
80 | success = m_Connector.StoreUserAccount(account); | ||
81 | Assert.IsFalse(success, "Storing a non-existing account must fail"); | ||
78 | } | 82 | } |
79 | 83 | ||
80 | } | 84 | } |