Exemplo n.º 1
0
        public void MyFirstTest()
        {
            
            Users curUser = new Users();
           // var dd = curUser.GetALL();
            var dd = curUser.GetALL2();

            //return;

            var result = true;
          Assert.IsTrue(result);
        }
Exemplo n.º 2
0
        public void MyFirstTest(){

           // AccountController cotro = new AccountController();


      // var dsd=     cotro.Login("");
           
//            List<string> ff = new List<string>();
//            string strconn = @"Data Source=(LocalDb)\v11.0;AttachDbFilename=C:\Users\sweetyuser\Documents\GitHub\UserMvc_Proj\App_Data\aspnet-UserMvc_Proj-20150630040702.mdf;Initial Catalog=aspnet-UserMvc_Proj-20150630040702;Integrated Security=True";
//            using ( SqlConnection con = new SqlConnection(strconn))
//            {
//                con.Open();

//                string cmdstr = "select * from AspNetUsers";
//                SqlCommand com = new SqlCommand(cmdstr, con);//使用指定的SQL命令和连接对象创建SqlCommand对象
//                SqlDataReader dr = com.ExecuteReader();

//                while(dr.Read())
              
//{
//    ff.Add(dr[1].ToString());
//}
//dr.Close();

//            }



           Users curUser = new Users();
           var dd = curUser.GetALL2();
            Console.Out.WriteLine("sdfsdf");
          //return;
//new Mock

            
            var result = true;
            Assert.IsTrue(result); 
        }