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); }
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); }