Пример #1
0
 public void InsertUserAuth_패스워드_빼고_입력하면_Exception이_발생허는지()
 {
     bool ThrowException = false;
     SQLDataQueryRepository sql = new SQLDataQueryRepository();
     try
     {
         string query = sql.InsertUserAuth("id", null, "auth", libHitpan5.enums.사용자등급.관리자);
         ThrowException = true;
     }
     catch (ArgumentNullException)
     {
         ThrowException = false;
     }
     Assert.IsFalse(ThrowException);
 }
Пример #2
0
 public void InsertUserAuth_올바른_값_입력하면_올바른_쿼리가_반환되는지()
 {
     SQLDataQueryRepository sql = new SQLDataQueryRepository();
     string query = sql.InsertUserAuth("id","password","auth",libHitpan5.enums.사용자등급.관리자);
     Assert.AreEqual("insert into Users values('id','password','auth',1)", query);
 }