One more test in UserAccountsClient.

fsassets
Diva Canto 2015-05-12 08:55:32 -07:00
parent 9366165b34
commit aefed57158
1 changed files with 5 additions and 1 deletions

View File

@ -67,7 +67,7 @@ namespace Robust.Tests
account.Email = "user@example.com"; account.Email = "user@example.com";
bool success = m_Connector.StoreUserAccount(account); bool success = m_Connector.StoreUserAccount(account);
Assert.IsTrue(success, "Failed to store account"); Assert.IsTrue(success, "Failed to store existing account");
account = m_Connector.GetUserAccount(UUID.Zero, user1); account = m_Connector.GetUserAccount(UUID.Zero, user1);
Assert.NotNull(account, "Failed to retrieve account for user id " + user1); Assert.NotNull(account, "Failed to retrieve account for user id " + user1);
@ -75,6 +75,10 @@ namespace Robust.Tests
account = m_Connector.GetUserAccount(UUID.Zero, "DoesNot", "Exist"); account = m_Connector.GetUserAccount(UUID.Zero, "DoesNot", "Exist");
Assert.IsNull(account, "Account DoesNot Exit must not be there"); Assert.IsNull(account, "Account DoesNot Exit must not be there");
account = new UserAccount(UUID.Zero, "DoesNot", "Exist", "xxx@xxx.com");
success = m_Connector.StoreUserAccount(account);
Assert.IsFalse(success, "Storing a non-existing account must fail");
} }
} }