public void CastRoleTest() { User user = new User("agent"); bool expected = true; bool actual = user.Login("agent"); Assert.AreEqual(expected, actual); user = user.Find(); User target = (User)user; if (target is Agent) Assert.IsTrue(true); else Assert.IsTrue(false); }
public void LoginPassTest() { User user = new User("agent"); bool expected = true; bool actual = user.Login("agent"); Assert.AreEqual(expected, actual); }
public void LoginFailTest() { User user = new User("A999"); bool expected = false; bool actual = user.Login("W002"); Assert.AreEqual(expected, actual); }