Exemplo n.º 1
0
 public void UpdateUser_NoError()
 {
     try
     {
         UserAccessor.UpdateUser("*****@*****.**", "*****@*****.**", "password", 3);
     }
     catch (InvalidOperationException e)
     {
         StringAssert.Contains(e.Message, "");
     }
     return;
 }
Exemplo n.º 2
0
 public void UpdateUser_InvalidDataEmail()
 {
     try
     {
         UserAccessor.UpdateUser("*****@*****.**", "tempx @gmail.com", "password", 7);
     }
     catch (InvalidOperationException e)
     {
         StringAssert.Contains(e.Message, "");
         return;
     }
     Assert.Fail("The expected exception was not thrown.");
 }