Пример #1
0
 public void Controller_Login_Parameter_ValidEmpty2()
 {
     controller = Controller.GetInstance();
     try
     {
         RentItServer.ITU.DatabaseWrapperObjects.User user = controller.Login(testmail, "");
         Assert.Fail("No exception was raised");
     }
     catch (ArgumentException)
     {
         //This is expected
     }
 }
Пример #2
0
 public void Controller_Login_Parameter_ValidValid2()
 {
     controller = Controller.GetInstance();
     try
     {
         RentItServer.ITU.DatabaseWrapperObjects.User user = controller.Login(testmail, testpw);
     }
     catch
     {
         Assert.Fail("An exception was raised");
     }
 }
Пример #3
0
 public void Controller_Login_Parameter_NullNull()
 {
     controller = Controller.GetInstance();
     try
     {
         RentItServer.ITU.DatabaseWrapperObjects.User user = controller.Login(null, null);
         Assert.Fail("No exception was raised");
     }
     catch (ArgumentNullException)
     {
         //This is expected
     }
 }