Ejemplo n.º 1
0
 public void UserLogin_WrongProtocolTestCases(string url)
 {
     AsyncContext.Run(async() =>
     {
         try
         {
             await User.LoginAsync(SyncTestHelpers.CreateCredentials(), new Uri(url));
             Assert.Fail("Expected exception to be thrown.");
         }
         catch (Exception ex)
         {
             Assert.That(ex, Is.TypeOf <ArgumentException>());
         }
     });
 }