예제 #1
0
 public void SelectUserAuth_파라미터_없는_메서드_테스트_Return_ID_전부_반환하는_쿼리()
 {
     //Arrange
     SQLDataQueryRepository queryReposit = new SQLDataQueryRepository();
     //Act
     string query = queryReposit.SelectUserAuth();
     //Assert
     Assert.AreEqual("select * from Users", query);
 }
예제 #2
0
        public void SelectUserAuth_Test_모든_값을_다_준_경우_쿼리생성이_정상적으로_되는지()
        {
            //Arrange
            string Expected = "select * from Users where userID='user'";
            SQLDataQueryRepository sql = new SQLDataQueryRepository();

            //Act
            string actual= sql.SelectUserAuth("user");

            //Assert
            Assert.AreEqual(Expected,actual);
        }