add test for too short passwords in registration

This commit is contained in:
2013-11-02 10:18:33 +01:00
parent b5b7638ea7
commit 25a25472b3
+5
View File
@@ -50,6 +50,11 @@ namespace PocketSharp.Tests
await client.RegisterAccount("myusername", "pocketsharp@outlook,com", "mypassword");
});
await ThrowsAsync<FormatException>(async () =>
{
await client.RegisterAccount("myusername", "pocketsharp@outlook.com", "my");
});
await ThrowsAsync<ArgumentNullException>(async () =>
{
await client.RegisterAccount("myusername", null, "mypassword");