Example #1
0
 public void VLoginPwdErrTest()
 {
     SQLDAL.Viewer target = new SQLDAL.Viewer();
     string userId = "st";
     string userPassword = "******";//密码错误
     bool expected = false;    //期望值
     bool actual;
     actual = target.Login(userId, userPassword); //实际值
     Assert.AreEqual(expected, actual);
 }
Example #2
0
 public void VLoginTest()
 {
     SQLDAL.Viewer target = new SQLDAL.Viewer();
     string userId = "s001";
     string userPassword = "******";
     bool expected = true;    //期望值
     bool actual;
     actual = target.Login(userId, userPassword); //实际值
     Assert.AreEqual(expected, actual);
 }
Example #3
0
 public void GetViewerNameTest()
 {
     SQLDAL.Viewer target = new SQLDAL.Viewer();
     string r_id = "st";
     string expected = "Test";    //期望值
     string actual;
     actual = target.GetViewerName(r_id).Name.ToString();
     Assert.AreEqual(expected, actual);
 }